:root {
  --p103-bg: #150020;
  --p103-bg-2: #2a0045;
  --p103-panel: rgba(56, 5, 83, 0.88);
  --p103-panel-2: rgba(111, 9, 117, 0.78);
  --p103-border: #f8bf4c;
  --p103-border-soft: rgba(248, 191, 76, 0.54);
  --p103-gold: #ffd86a;
  --p103-gold-2: #f08f24;
  --p103-pink: #ff37db;
  --p103-text: #fff8dc;
  --p103-muted: #dfb6ef;
  --p103-shadow: 0 0 18px rgba(247, 44, 210, 0.46), inset 0 0 18px rgba(255, 211, 98, 0.12);
}

@font-face {
  font-family: "P103Display";
  src: url("./assets/resources/native/b8/b8578e88-2e40-4b8b-93ea-c85652042223.907aa/FZY4JW--GB1-0.ttf") format("truetype");
  font-display: swap;
}

html,
body {
  background: var(--p103-bg);
}

body.p103-purple-ready {
  color: var(--p103-text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

#p103PurpleLobby {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  overflow: hidden;
  color: var(--p103-text);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 58, 220, 0.38), transparent 22%),
    radial-gradient(circle at 74% 18%, rgba(255, 210, 91, 0.25), transparent 18%),
    linear-gradient(180deg, #2b003d 0%, #30004b 40%, #12001c 100%);
}

body.p103-lobby-visible #p103PurpleLobby {
  display: block;
}

body.p103-lobby-visible #GameCanvas,
body.p103-lobby-visible #Cocos2dGameContainer {
  opacity: 0.01;
  pointer-events: none;
}

body.p103-game-visible #p103PurpleLobby {
  display: none;
}

body.p103-game-visible #GameCanvas,
body.p103-game-visible #Cocos2dGameContainer {
  opacity: 1;
  pointer-events: auto;
}

.p103-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 980px;
  min-height: 548px;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 86px 54px 1fr 94px;
  gap: 8px;
  padding: 8px 16px 10px;
}

.p103-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.22;
}

.p103-topbar,
.p103-tabs,
.p103-main,
.p103-bottom {
  position: relative;
  z-index: 1;
}

.p103-topbar {
  display: grid;
  grid-template-columns: 1.6fr 1.3fr 1fr 1.8fr;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid rgba(255, 209, 92, 0.52);
}

.p103-profile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.p103-avatar {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 3px solid var(--p103-gold);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 24%, #ffe8a7, #b63d9b 48%, #410045 70%);
  box-shadow: 0 0 16px rgba(255, 211, 103, 0.72);
  font-size: 32px;
}

.p103-name {
  overflow: hidden;
  text-align: left;
}

.p103-name strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p103-name span {
  display: inline-grid;
  min-width: 76px;
  height: 23px;
  margin-top: 7px;
  place-items: center;
  border: 1px solid rgba(255, 216, 106, 0.58);
  border-radius: 999px;
  color: #ffe889;
  background: linear-gradient(180deg, #5b005c, #21002f);
  font-weight: 800;
  font-size: 14px;
}

.p103-exp {
  position: relative;
  width: min(170px, 100%);
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #130018;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.p103-exp > i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff31de, #ffd05c);
}

.p103-balance {
  min-width: 0;
  height: 58px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 48px;
  align-items: center;
  padding: 0 8px;
  border: 2px solid rgba(255, 211, 98, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(61, 0, 73, 0.94), rgba(27, 0, 40, 0.94));
  box-shadow: var(--p103-shadow);
}

.p103-coin {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #fff4b4, #ffbe31 48%, #9e4b00 80%);
  color: #7a3000;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(255, 204, 72, 0.8);
}

.p103-balance strong {
  overflow: hidden;
  color: #ffe89d;
  font-size: 25px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 0 #5b2100;
}

.p103-plus,
.p103-wallet,
.p103-icon-btn,
.p103-tab,
.p103-bottom button,
.p103-primary,
.p103-secondary {
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.p103-plus {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 211, 98, 0.52);
  border-radius: 50%;
  background: linear-gradient(180deg, #6c1681, #1e002b);
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.p103-wallet {
  height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 2px solid var(--p103-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #f43cff, #750081 55%, #3a003d);
  box-shadow: 0 0 16px rgba(255, 57, 221, 0.62), inset 0 0 16px rgba(255, 255, 255, 0.22);
  font-weight: 900;
  min-width: 0;
}

.p103-wallet i {
  width: 38px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffe68f, #e0831d);
  box-shadow: inset 0 0 0 3px rgba(126, 43, 0, 0.22);
}

.p103-tools {
  display: grid;
  grid-template-columns: repeat(5, minmax(54px, 1fr));
  gap: 8px;
}

.p103-icon-btn {
  height: 68px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  background: transparent;
  color: #ffe8a1;
  font-size: 12px;
  font-weight: 700;
}

.p103-icon-btn i {
  font-style: normal;
  font-size: 27px;
  filter: drop-shadow(0 0 8px rgba(255, 207, 91, 0.86));
}

.p103-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, max-content);
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 6px;
  scrollbar-width: none;
}

.p103-tabs::-webkit-scrollbar,
.p103-card-row::-webkit-scrollbar {
  display: none;
}

.p103-tab {
  height: 42px;
  min-width: 116px;
  padding: 0 18px;
  border: 1px solid rgba(255, 211, 98, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(99, 6, 111, 0.74), rgba(34, 0, 48, 0.74));
  color: #eecdf6;
  box-shadow: inset 0 0 12px rgba(255, 49, 219, 0.16);
  font-weight: 900;
  white-space: nowrap;
}

.p103-tab.active {
  border-color: #fff0ad;
  background: linear-gradient(180deg, #fff26c, #f39125 72%, #b24a0c);
  color: #5a1700;
  text-shadow: 0 1px rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 14px rgba(255, 198, 62, 0.62);
}

.p103-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: 16px;
}

.p103-content {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(176px, 1fr) 204px;
  gap: 12px;
}

.p103-hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 2px solid var(--p103-border);
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(62, 0, 76, 0.86), rgba(109, 0, 123, 0.42)),
    url("./assets/main/native/93/933471ea-6cd0-4680-ba5c-529f6dd9aaa4.6368d.jpg") center/cover no-repeat;
  box-shadow: var(--p103-shadow);
}

.p103-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.38), transparent 18%),
    linear-gradient(90deg, rgba(28, 0, 41, 0.3), rgba(60, 0, 75, 0.9) 70%);
}

.p103-hero::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  width: 326px;
  height: 188px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 226, 125, 0.98) 0 8px, transparent 9px),
    radial-gradient(circle at 88% 62%, rgba(255, 191, 47, 0.95) 0 16px, transparent 17px),
    radial-gradient(circle at 64% 70%, rgba(255, 219, 100, 0.9) 0 12px, transparent 13px),
    linear-gradient(135deg, transparent 0 21%, #ffd56b 22% 30%, #9f007e 31% 58%, #4a003b 59% 100%);
  border-radius: 150px 150px 0 0;
  filter: drop-shadow(0 0 16px rgba(255, 211, 94, 0.72));
  clip-path: polygon(18% 100%, 31% 41%, 47% 18%, 69% 8%, 84% 25%, 93% 57%, 100% 100%);
  opacity: 0.96;
}

.p103-hero-copy {
  position: absolute;
  left: 36px;
  top: 50%;
  max-width: 58%;
  transform: translateY(-50%);
  text-align: left;
}

.p103-hero-copy h1 {
  margin: 0 0 8px;
  color: #ffd35c;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 0.96;
  text-shadow: 0 4px 0 #7f1c00, 0 0 18px rgba(255, 230, 120, 0.88);
}

.p103-hero-copy p {
  max-width: 570px;
  margin: 0 0 18px;
  color: #fff5cc;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 2px 0 rgba(37, 0, 40, 0.95);
}

.p103-primary,
.p103-secondary {
  min-height: 42px;
  padding: 0 22px;
  border: 2px solid var(--p103-border);
  border-radius: 999px;
  font-weight: 950;
}

.p103-primary {
  background: linear-gradient(180deg, #ff59f3, #a600a7 58%, #5b005a);
  color: #fffbd8;
  box-shadow: 0 0 16px rgba(255, 49, 219, 0.65), inset 0 0 12px rgba(255, 255, 255, 0.18);
}

.p103-secondary {
  background: linear-gradient(180deg, rgba(255, 244, 173, 0.16), rgba(80, 0, 99, 0.82));
  color: #ffe7a2;
}

.p103-hero-lady {
  position: absolute;
  right: 104px;
  bottom: 2px;
  width: 154px;
  max-width: 22%;
  aspect-ratio: 0.72;
  border-radius: 46% 46% 0 0;
  background:
    radial-gradient(circle at 50% 14%, #ffefc8 0 14%, transparent 15%),
    radial-gradient(circle at 50% 23%, #5c2300 0 21%, transparent 22%),
    radial-gradient(circle at 50% 11%, transparent 0 13%, #ffd869 14% 18%, transparent 19%),
    linear-gradient(145deg, transparent 0 31%, #ffd376 32% 39%, #9d018a 40% 72%, #4a003d 73%);
  filter: drop-shadow(0 0 20px rgba(255, 215, 103, 0.66));
  opacity: 0.95;
  z-index: 1;
}

.p103-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.p103-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 242, 178, 0.55);
}

.p103-dots i.active {
  width: 24px;
  background: #ffe878;
}

.p103-card-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 1px 2px 6px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  touch-action: pan-y;
  cursor: grab;
}

.p103-card-row.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.p103-games-wrap {
  position: relative;
  min-width: 0;
}

.p103-game-card {
  position: relative;
  min-width: 132px;
  overflow: hidden;
  border: 2px solid var(--p103-border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(97, 0, 112, 0.32), rgba(23, 0, 36, 0.95)),
    var(--card-art, radial-gradient(circle at 50% 28%, #ffcf6d, #7f0c88 46%, #1b002a 88%));
  background-size: 100% 100%, 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 12px rgba(255, 49, 219, 0.34), inset 0 -66px 48px rgba(24, 0, 27, 0.78);
}

.p103-game-card::before {
  content: "";
  position: absolute;
  inset: 7px 7px 48px;
  border: 1px solid rgba(255, 234, 152, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(12, 0, 20, 0.08));
  box-shadow: inset 0 0 16px rgba(255, 215, 106, 0.14);
}

.p103-game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 44%, rgba(22, 0, 28, 0.58) 70%, rgba(9, 0, 18, 0.94));
  pointer-events: none;
}

.p103-game-mark {
  display: none !important;
}

.p103-game-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 46%;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 2px solid #fff1a9;
  border-radius: 50%;
  color: #5c1900;
  background: radial-gradient(circle at 33% 24%, #fff8c2, #ffc13b 52%, #9d4b00 82%);
  box-shadow: 0 0 16px rgba(255, 211, 83, 0.76), inset 0 0 0 5px rgba(132, 36, 0, 0.16);
  font-size: 31px;
  font-weight: 950;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px rgba(255, 255, 255, 0.45);
}

.p103-game-card button {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.p103-badge {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 6px;
  min-width: 42px;
  padding: 4px 6px;
  border: 1px solid #fff5ba;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff3333, #9d0000);
  font-size: 11px;
  font-weight: 950;
}

.p103-badge.new {
  background: linear-gradient(180deg, #4bf66a, #008a2d);
}

.p103-game-title {
  position: absolute;
  z-index: 2;
  left: 8px;
  right: 8px;
  bottom: 26px;
  overflow: hidden;
  color: #ffd85f;
  font-size: 21px;
  font-weight: 950;
  text-shadow: 0 3px 0 #5c1700, 0 0 10px rgba(255, 215, 90, 0.65);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p103-game-meta {
  position: absolute;
  z-index: 2;
  left: 8px;
  right: 8px;
  bottom: 9px;
  display: flex;
  justify-content: center;
  gap: 7px;
  color: #f1c5fa;
  font-size: 11px;
  font-weight: 900;
}

.p103-side {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 0.74fr;
  gap: 12px;
}

.p103-jackpot,
.p103-bonus {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--p103-border);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(72, 0, 87, 0.96), rgba(23, 0, 35, 0.96));
  box-shadow: var(--p103-shadow);
}

.p103-jackpot {
  padding: 10px 14px;
}

.p103-jackpot h2,
.p103-bonus h2 {
  margin: 0 0 8px;
  color: #ffe484;
  font-size: 27px;
  line-height: 1;
  text-shadow: 0 3px 0 #7a1f00;
}

.p103-prize {
  height: 33px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  margin-top: 7px;
  padding: 0 9px;
  border: 1px solid rgba(255, 216, 106, 0.42);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(110, 0, 126, 0.82), rgba(24, 0, 37, 0.82));
  color: #ffe898;
  font-weight: 950;
}

.p103-prize span {
  color: #ffc94e;
  font-size: 12px;
}

.p103-prize strong {
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p103-treasure {
  position: absolute;
  right: -12px;
  bottom: -13px;
  width: 122px;
  height: 86px;
  border-radius: 12px 12px 34px 34px;
  background:
    radial-gradient(circle at 22% 68%, #ffe88a 0 8px, transparent 9px),
    radial-gradient(circle at 50% 74%, #ffbd32 0 13px, transparent 14px),
    linear-gradient(180deg, #ffcf55 0 20px, #7d2a00 21px 43px, #ffd55e 44px 55px, #b74800 56px);
  filter: drop-shadow(0 0 12px rgba(255, 212, 88, 0.82));
  transform: rotate(-8deg);
}

.p103-bonus {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 16px 18px;
  text-align: left;
}

.p103-bonus p {
  margin: 0;
  color: #f5c9ff;
  font-weight: 800;
}

.p103-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.55fr repeat(3, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 2px solid rgba(255, 211, 98, 0.42);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, rgba(106, 0, 117, 0.82), rgba(21, 0, 32, 0.96));
  box-shadow: 0 -4px 24px rgba(255, 47, 218, 0.2);
}

.p103-bottom button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #efd1f6;
  font-weight: 800;
}

.p103-bottom button i {
  color: #ffd461;
  font-style: normal;
  font-size: 27px;
  filter: drop-shadow(0 0 9px rgba(255, 204, 72, 0.82));
}

.p103-bottom .p103-spin {
  margin: 8px 8px 6px;
  border: 2px solid var(--p103-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ff3ee5, #9b009c 58%, #4b004d);
  color: #fffbd6;
  box-shadow: var(--p103-shadow);
}

.p103-bottom .p103-spin strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 3px 0 #771700;
}

.p103-bottom .p103-spin small {
  color: #f5cdfc;
  font-size: 12px;
  font-weight: 800;
}

.p103-auth {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  background: rgba(9, 0, 14, 0.68);
  backdrop-filter: blur(8px);
}

.p103-auth.show {
  display: grid;
}

body.p103-auth-required #p103PurpleLobby .p103-shell {
  filter: blur(2px) brightness(0.62);
  pointer-events: none;
}

body.p103-auth-required #p103Auth {
  display: grid;
}

.p103-auth-card,
.p103-panel-pop {
  width: min(430px, calc(100vw - 36px));
  box-sizing: border-box;
  padding: 22px;
  border: 2px solid var(--p103-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(82, 0, 98, 0.98), rgba(20, 0, 32, 0.98));
  box-shadow: 0 0 28px rgba(255, 49, 219, 0.52), inset 0 0 22px rgba(255, 211, 98, 0.12);
  text-align: left;
}

.p103-auth-card h2,
.p103-panel-pop h2 {
  margin: 0 0 6px;
  color: #ffe17a;
  font-size: 28px;
  text-shadow: 0 2px 0 #6b1900;
}

.p103-auth-card p,
.p103-panel-pop p {
  margin: 0 0 16px;
  color: var(--p103-muted);
  font-weight: 700;
}

.p103-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #ffe9a6;
  font-size: 13px;
  font-weight: 800;
}

.p103-field input {
  height: 42px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid rgba(255, 211, 98, 0.42);
  border-radius: 9px;
  outline: 0;
  color: #fff;
  background: rgba(17, 0, 26, 0.72);
  font: inherit;
  user-select: text;
}

.p103-field input:focus {
  border-color: #fff0a2;
  box-shadow: 0 0 0 3px rgba(255, 49, 219, 0.18);
}

.p103-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.p103-message {
  min-height: 22px;
  margin-top: 12px;
  color: #ffef9a;
  font-weight: 800;
}

.p103-panel-pop {
  position: fixed;
  z-index: 45;
  left: 50%;
  top: 50%;
  display: none;
  transform: translate(-50%, -50%);
}

.p103-panel-pop.show {
  display: block;
}

.p103-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.p103-panel-item {
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 211, 98, 0.34);
  border-radius: 10px;
  background: rgba(35, 0, 51, 0.72);
}

.p103-panel-item strong {
  display: block;
  color: #ffe27f;
  font-size: 20px;
}

.p103-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 211, 98, 0.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(35, 0, 51, 0.8);
  cursor: pointer;
}

.p103-toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 112px;
  max-width: min(520px, calc(100vw - 40px));
  padding: 11px 18px;
  border: 1px solid rgba(255, 211, 98, 0.68);
  border-radius: 999px;
  color: #fff8d1;
  background: rgba(32, 0, 45, 0.92);
  box-shadow: 0 0 18px rgba(255, 49, 219, 0.42);
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.p103-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#splash {
  z-index: 120;
  display: grid !important;
  place-items: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 49, 219, 0.3), transparent 24%),
    radial-gradient(circle at 24% 22%, rgba(255, 214, 97, 0.18), transparent 18%),
    linear-gradient(180deg, #3a0055, #14001f 72%, #090010) !important;
  opacity: 1;
  transition: opacity 0.36s ease, visibility 0.36s ease;
}

body.p103-purple-ready #splash {
  display: grid !important;
}

#splash.p103-splash-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.p103-boot-loader {
  position: absolute;
  left: 50%;
  top: 48%;
  display: grid;
  width: min(420px, 78vw);
  justify-items: center;
  gap: 10px;
  color: #fff2b9;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.p103-boot-logo {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 3px solid #ffd967;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 24%, rgba(255, 255, 255, 0.72), transparent 16%),
    linear-gradient(180deg, #ff54e9, #650079 68%, #270033);
  box-shadow: 0 0 24px rgba(255, 63, 227, 0.66), inset 0 0 18px rgba(255, 217, 103, 0.36);
}

.p103-boot-logo::before {
  content: "";
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff8c7 0 30%, #ffd15d 31% 56%, #8f4300 57%);
  box-shadow: 0 0 16px rgba(255, 220, 103, 0.72);
}

.p103-boot-logo::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(255, 216, 103, 0.42);
  border-top-color: rgba(255, 62, 227, 0.92);
  border-radius: 50%;
  animation: p103Spin 1.1s linear infinite;
}

.p103-boot-loader strong {
  color: #ffe47a;
  font-size: 28px;
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(87, 21, 0, 0.72), 0 0 16px rgba(255, 62, 227, 0.52);
}

.p103-boot-loader span {
  color: #efd7f7;
  font-size: 14px;
  font-weight: 850;
}

body.p103-purple-ready .progress-bar {
  left: 50% !important;
  top: calc(50% + 122px) !important;
  width: min(360px, 64vw) !important;
  height: 5px !important;
  transform: translateX(-50%);
  background: rgba(21, 0, 32, 0.76) !important;
  box-shadow: 0 0 0 1px rgba(255, 211, 98, 0.42), 0 0 18px rgba(255, 49, 219, 0.35) !important;
}

body.p103-purple-ready .progress-bar span {
  background-color: #ff3fe3 !important;
  background-image: linear-gradient(90deg, #ff3fe3, #ffd860) !important;
}

@keyframes p103Spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-aspect-ratio: 4 / 3) {
  .p103-shell {
    min-width: 760px;
    grid-template-rows: 78px 50px 1fr 86px;
    padding: 8px;
  }

  .p103-main {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 10px;
  }

  .p103-topbar {
    grid-template-columns: 1.5fr 1.2fr 0.9fr 1.4fr;
    gap: 10px;
  }

  .p103-tools {
    grid-template-columns: repeat(5, 48px);
    justify-content: end;
  }

  .p103-icon-btn span {
    display: none;
  }
}

@media (max-width: 900px) {
  #p103PurpleLobby {
    overflow-x: auto;
  }
}

body.p103-lobby-visible #p103PurpleLobby {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.p103-shell {
  width: 1280px;
  height: 720px;
  min-width: 1280px;
  min-height: 720px;
  flex: 0 0 auto;
  grid-template-rows: 86px 54px 1fr 94px;
  padding: 8px 16px 10px;
  margin-top: max(0px, calc((100vh - var(--p103-scaled-height, 720px)) / 2));
  transform: scale(var(--p103-scale, 1));
  transform-origin: top center;
}

.p103-main {
  grid-template-columns: minmax(0, 1fr) 246px;
  gap: 16px;
}

.p103-topbar {
  grid-template-columns: 1.6fr 1.3fr 1fr 1.8fr;
  gap: 16px;
}

.p103-tools {
  grid-template-columns: repeat(5, minmax(54px, 1fr));
  justify-content: stretch;
}

.p103-icon-btn span {
  display: inline;
}

/* Enterprise purple-gold polish layer */
body.p103-purple-ready {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

#p103PurpleLobby {
  background:
    linear-gradient(90deg, rgba(255, 215, 103, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 18% 10%, rgba(255, 45, 211, 0.4), transparent 25%),
    radial-gradient(circle at 78% 18%, rgba(255, 221, 95, 0.18), transparent 22%),
    linear-gradient(180deg, #260035 0%, #4b0067 45%, #140020 100%);
  background-size: 80px 80px, auto, auto, auto;
}

.p103-svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p103-topbar {
  border-bottom: 2px solid rgba(255, 220, 105, 0.72);
  box-shadow: 0 9px 18px rgba(73, 0, 99, 0.58);
}

.p103-avatar {
  position: relative;
  color: #fff2a6;
  background:
    radial-gradient(circle at 52% 37%, #803260 0 24%, transparent 25%),
    radial-gradient(circle at 35% 24%, #fff4bc, #d17a23 32%, #7d006d 59%, #230030 100%);
}

.p103-avatar::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.p103-avatar .p103-svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 0 #6d2600) drop-shadow(0 0 8px rgba(255, 220, 92, 0.8));
}

.p103-name strong,
.p103-balance strong,
.p103-hero-copy h1,
.p103-jackpot h2,
.p103-bonus h2,
.p103-game-title,
.p103-bottom .p103-spin strong {
  letter-spacing: 0;
}

.p103-name span {
  border-color: rgba(255, 216, 106, 0.9);
  background: linear-gradient(180deg, #451054 0%, #1b0029 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 57, 220, 0.32), 0 0 8px rgba(255, 210, 88, 0.34);
}

.p103-balance,
.p103-wallet,
.p103-tab,
.p103-jackpot,
.p103-bonus,
.p103-bottom,
.p103-auth-card,
.p103-panel-pop {
  border-color: #ffd669;
  box-shadow:
    0 0 13px rgba(255, 49, 220, 0.48),
    inset 0 0 18px rgba(255, 219, 103, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.p103-coin,
.p103-plus {
  color: #7b2a00;
}

.p103-coin .p103-svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.6;
}

.p103-plus {
  display: grid;
  place-items: center;
}

.p103-plus .p103-svg {
  width: 24px;
  height: 24px;
  color: #fff9d4;
  filter: drop-shadow(0 0 6px rgba(255, 235, 144, 0.76));
}

.p103-wallet {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff61f4 0%, #b80ac0 48%, #4f0058 100%);
}

.p103-wallet::after,
.p103-primary::after,
.p103-spin::after {
  content: "";
  position: absolute;
  inset: 3px 5px auto 5px;
  height: 34%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent);
  pointer-events: none;
}

.p103-wallet i {
  display: grid;
  place-items: center;
  color: #7b3200;
}

.p103-wallet i .p103-svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.p103-icon-btn i,
.p103-bottom button i {
  display: grid;
  place-items: center;
  color: #ffe68c;
  font-size: 29px;
}

.p103-icon-btn .p103-svg,
.p103-bottom .p103-svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 0 #632000) drop-shadow(0 0 8px rgba(255, 214, 88, 0.88));
}

.p103-tabs {
  gap: 12px;
}

.p103-tab {
  display: grid;
  grid-template-columns: 22px auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  border-width: 2px;
  color: #f3d7ff;
  background:
    linear-gradient(180deg, rgba(125, 15, 137, 0.8), rgba(30, 0, 45, 0.88)),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.2), transparent 45%);
}

.p103-tab .p103-svg {
  width: 20px;
  height: 20px;
  color: #f4caff;
}

.p103-tab.active .p103-svg {
  color: #6f2200;
}

.p103-hero {
  border-width: 3px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(49, 0, 68, 0.8) 0%, rgba(89, 0, 110, 0.3) 44%, rgba(44, 0, 61, 0.84) 100%),
    radial-gradient(circle at 22% 12%, rgba(255, 85, 227, 0.38), transparent 18%),
    url("./assets/main/native/93/933471ea-6cd0-4680-ba5c-529f6dd9aaa4.6368d.jpg") center/cover no-repeat;
  box-shadow: 0 0 18px rgba(255, 42, 220, 0.52), inset 0 0 22px rgba(255, 220, 101, 0.12);
}

.p103-hero::before {
  background:
    radial-gradient(circle at 18% 23%, rgba(255, 255, 255, 0.22), transparent 15%),
    radial-gradient(circle at 69% 19%, rgba(255, 80, 221, 0.34), transparent 16%),
    linear-gradient(90deg, rgba(27, 0, 37, 0.12), rgba(61, 0, 81, 0.82) 72%);
}

.p103-hero-copy {
  z-index: 2;
  left: 34px;
}

.p103-hero-copy h1 {
  font-size: 56px;
  color: #ffdc66;
  -webkit-text-stroke: 1px rgba(113, 32, 0, 0.65);
  text-shadow:
    0 3px 0 #7c2100,
    0 0 10px rgba(255, 222, 96, 0.82),
    0 0 22px rgba(255, 58, 219, 0.62);
}

.p103-hero-copy p {
  color: #fff0c4;
  font-size: 20px;
}

.p103-hero-lady {
  right: 105px;
  width: 168px;
  background:
    radial-gradient(circle at 50% 13%, #fff0c7 0 13%, transparent 14%),
    radial-gradient(circle at 50% 22%, #4f1c00 0 20%, transparent 21%),
    radial-gradient(circle at 50% 9%, transparent 0 13%, #ffd86a 14% 18%, transparent 19%),
    radial-gradient(circle at 36% 35%, #ffd86a 0 4%, transparent 5%),
    linear-gradient(145deg, transparent 0 29%, #ffd376 30% 38%, #aa038f 39% 72%, #4d003f 73%);
}

.p103-hero::after {
  right: 0;
  width: 346px;
  opacity: 0.9;
}

.p103-card-row {
  grid-auto-columns: 142px;
  gap: 14px;
}

.p103-game-card {
  min-width: 142px;
  border-width: 3px;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(17, 0, 30, 0.82)),
    repeating-linear-gradient(135deg, rgba(255, 217, 96, 0.1) 0 4px, transparent 4px 13px),
    var(--card-art, radial-gradient(circle at 50% 28%, #ffcf6d, #7f0c88 46%, #1b002a 88%));
  box-shadow:
    0 0 13px rgba(255, 50, 220, 0.43),
    inset 0 -72px 42px rgba(14, 0, 22, 0.86),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.p103-game-card::before {
  inset: 8px 8px 52px;
  border-color: rgba(255, 241, 169, 0.72);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 234, 125, 0.98), rgba(255, 68, 214, 0.24) 34%, transparent 59%),
    conic-gradient(from 20deg, rgba(255, 224, 95, 0.34), rgba(255, 58, 220, 0.14), rgba(91, 0, 126, 0.35), rgba(255, 224, 95, 0.34));
}

.p103-game-mark {
  width: 72px;
  height: 72px;
  font-size: 33px;
  border-width: 3px;
}

.p103-badge {
  top: 7px;
  left: 7px;
  border-width: 2px;
  box-shadow: 0 0 8px rgba(255, 30, 30, 0.66);
}

.p103-badge.new {
  box-shadow: 0 0 8px rgba(79, 255, 104, 0.72);
}

.p103-game-title {
  bottom: 30px;
  font-size: 22px;
  -webkit-text-stroke: 0.6px rgba(94, 23, 0, 0.6);
}

.p103-side {
  gap: 12px;
}

.p103-prize {
  border-width: 2px;
  border-color: rgba(255, 219, 104, 0.62);
  background:
    linear-gradient(90deg, rgba(126, 0, 143, 0.9), rgba(22, 0, 36, 0.92)),
    radial-gradient(circle at 0 50%, rgba(255, 212, 82, 0.2), transparent 50%);
}

.p103-prize:nth-child(4) {
  background: linear-gradient(90deg, rgba(20, 116, 48, 0.9), rgba(20, 0, 33, 0.92));
}

.p103-bottom {
  border-width: 2px;
  background:
    linear-gradient(180deg, rgba(146, 0, 152, 0.82), rgba(25, 0, 39, 0.98)),
    radial-gradient(circle at 50% 0, rgba(255, 81, 229, 0.25), transparent 58%);
}

.p103-bottom button {
  font-size: 14px;
}

.p103-bottom .p103-spin {
  position: relative;
  margin: 8px 10px 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff61f4 0%, #b906b7 54%, #56005b 100%);
}

.p103-auth-card,
.p103-panel-pop {
  position: relative;
  overflow: hidden;
  border-width: 3px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(111, 0, 128, 0.98), rgba(22, 0, 36, 0.98)),
    radial-gradient(circle at 16% 8%, rgba(255, 62, 226, 0.28), transparent 32%);
}

.p103-modal-slice,
.p103-panel-slices {
  position: absolute;
  right: -12px;
  top: -18px;
  width: 150px;
  height: 150px;
  transform: skewX(-18deg) rotate(8deg);
  background:
    linear-gradient(135deg, #ffd767 0 13%, transparent 14% 24%, #af0098 25% 58%, #3d003a 59% 100%);
  opacity: 0.45;
  pointer-events: none;
}

.p103-panel-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}

.p103-panel-slices {
  top: -34px;
  right: -38px;
}

.p103-panel-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.p103-field input {
  border-width: 2px;
  border-color: rgba(255, 218, 103, 0.52);
  background: linear-gradient(180deg, rgba(20, 0, 31, 0.92), rgba(55, 0, 70, 0.72));
}

.p103-panel-item {
  border-width: 2px;
  border-color: rgba(255, 218, 103, 0.46);
  background: linear-gradient(180deg, rgba(70, 0, 91, 0.84), rgba(28, 0, 44, 0.86));
}

.p103-close {
  z-index: 2;
  display: grid;
  place-items: center;
  border-width: 2px;
  color: #ffe88f;
  font-size: 22px;
}

/* Reference-image detail layer */
:root {
  --p103-ref-hero: url("./purple-assets/ref-hero.jpg");
  --p103-ref-lady: url("./purple-assets/ref-hero-lady.jpg");
  --p103-ref-pagoda: url("./purple-assets/ref-pagoda.jpg");
  --p103-ref-jackpot: url("./purple-assets/ref-jackpot.jpg");
  --p103-ref-bonus: url("./purple-assets/ref-bonus.jpg");
  --p103-ref-spin: url("./purple-assets/ref-spin.jpg");
  --p103-ref-topbar: url("./purple-assets/ref-topbar.jpg");
  --p103-ref-footer: url("./purple-assets/ref-footer.jpg");
}

#p103PurpleLobby {
  background:
    linear-gradient(90deg, rgba(255, 214, 97, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 14% 9%, rgba(255, 42, 214, 0.46), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(255, 214, 89, 0.2), transparent 20%),
    linear-gradient(180deg, #21002f 0%, #4b0069 42%, #13001e 100%);
}

.p103-shell::after {
  content: "";
  position: absolute;
  inset: 86px 14px 94px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 217, 92, 0.12), transparent 10%, transparent 90%, rgba(255, 217, 92, 0.12)),
    radial-gradient(circle at 50% 0, rgba(255, 57, 222, 0.22), transparent 45%);
  opacity: 0.9;
}

.p103-topbar {
  border-bottom-color: rgba(255, 217, 103, 0.88);
  background:
    linear-gradient(180deg, rgba(39, 0, 54, 0.44), rgba(45, 0, 64, 0.18)),
    var(--p103-ref-topbar) center top/cover no-repeat;
  box-shadow: 0 7px 0 rgba(255, 218, 105, 0.1), 0 12px 25px rgba(39, 0, 56, 0.72);
}

.p103-name strong,
.p103-hero-copy h1,
.p103-game-title,
.p103-bottom .p103-spin strong,
.p103-jackpot h2,
.p103-bonus h2 {
  font-family: "P103Display", "Arial Rounded MT Bold", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 950;
}

.p103-avatar {
  background:
    radial-gradient(circle at 49% 28%, #fff2c9 0 12%, #73364c 13% 28%, transparent 29%),
    radial-gradient(circle at 50% 50%, #b85a99 0 35%, #5b0066 54%, #22002e 76%);
}

.p103-balance {
  border-width: 2px;
  background:
    linear-gradient(180deg, rgba(95, 16, 98, 0.96), rgba(23, 0, 36, 0.97)),
    radial-gradient(circle at 16% 50%, rgba(255, 221, 99, 0.24), transparent 30%);
}

.p103-wallet {
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.p103-icon-btn {
  border-radius: 0;
  text-shadow: 0 2px 0 rgba(37, 0, 41, 0.9);
}

.p103-tabs {
  padding-inline: 26px;
  mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
}

.p103-tab {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.p103-tab::after {
  content: "";
  position: absolute;
  inset: 3px 8px auto 10px;
  height: 38%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

.p103-main {
  align-items: stretch;
}

.p103-content {
  grid-template-rows: 230px 204px;
}

.p103-hero {
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(24, 0, 35, 0.16), rgba(77, 0, 91, 0.2) 44%, rgba(29, 0, 41, 0.42)),
    var(--p103-ref-hero) center/cover no-repeat;
  box-shadow:
    0 0 18px rgba(255, 42, 220, 0.62),
    0 0 0 1px rgba(255, 242, 168, 0.35),
    inset 0 0 20px rgba(255, 224, 107, 0.24);
}

.p103-hero::before {
  inset: 10px;
  border: 1px solid rgba(255, 234, 139, 0.35);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(20, 0, 31, 0.08), rgba(72, 0, 89, 0.2) 46%, rgba(17, 0, 28, 0.44)),
    radial-gradient(circle at 25% 22%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 70% 18%, rgba(255, 77, 222, 0.18), transparent 18%);
}

.p103-hero::after {
  right: 8px;
  bottom: 2px;
  width: 298px;
  height: 226px;
  border-radius: 0;
  background: var(--p103-ref-lady) center bottom/cover no-repeat;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 20px rgba(255, 222, 101, 0.65));
  opacity: 1;
}

.p103-hero-lady {
  left: 16px;
  right: auto;
  bottom: 6px;
  z-index: 1;
  width: 322px;
  height: 194px;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  background: var(--p103-ref-pagoda) left bottom/cover no-repeat;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 15px rgba(255, 213, 85, 0.7));
  opacity: 0.96;
}

.p103-hero-copy {
  left: 244px;
  top: 46%;
  z-index: 3;
  max-width: 560px;
  text-align: center;
}

.p103-hero-copy h1 {
  font-size: 50px;
  line-height: 1.03;
  color: #ffd763;
  -webkit-text-stroke: 1.1px rgba(93, 25, 0, 0.78);
}

.p103-hero-copy p {
  font-size: 18px;
}

.p103-primary,
.p103-secondary {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.p103-card-row {
  position: relative;
  padding-inline: 8px;
}

.p103-card-row::before,
.p103-card-row::after {
  display: none;
}

.p103-game-nav {
  position: absolute;
  z-index: 14;
  top: 50%;
  display: grid;
  width: 42px;
  height: 72px;
  place-items: center;
  border: 2px solid rgba(255, 226, 116, 0.9);
  color: #fff5b9;
  background:
    linear-gradient(180deg, rgba(255, 92, 236, 0.96), rgba(117, 0, 136, 0.96)),
    radial-gradient(circle at center, rgba(255, 226, 116, 0.36), transparent 58%);
  box-shadow:
    0 0 16px rgba(255, 59, 222, 0.64),
    inset 0 0 12px rgba(255, 237, 155, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
}

.p103-game-nav .p103-svg {
  width: 28px;
  height: 28px;
  stroke-width: 3.4;
  filter: drop-shadow(0 2px 2px rgba(54, 0, 58, 0.9));
}

.p103-game-nav-prev {
  left: -2px;
  clip-path: polygon(68% 0, 100% 50%, 68% 100%, 14% 100%, 46% 50%, 14% 0);
}

.p103-game-nav-next {
  right: -2px;
  clip-path: polygon(32% 0, 86% 0, 54% 50%, 86% 100%, 32% 100%, 0 50%);
}

.p103-game-nav:hover {
  color: #ffffff;
  filter: brightness(1.08);
}

.p103-game-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.p103-game-card {
  border-color: #ffd66a;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(18, 0, 27, 0.08)),
    var(--card-art) center/100% 100% no-repeat;
  box-shadow:
    0 0 13px rgba(255, 42, 220, 0.55),
    0 4px 0 rgba(42, 0, 52, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.p103-game-card,
.p103-wallet,
.p103-icon-btn,
.p103-tab,
.p103-bottom button,
.p103-primary,
.p103-secondary,
.p103-mini-primary,
.p103-mini-secondary {
  transition: filter 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.p103-game-card:hover,
.p103-wallet:hover,
.p103-icon-btn:hover,
.p103-tab:hover,
.p103-bottom button:hover,
.p103-primary:hover,
.p103-secondary:hover,
.p103-mini-primary:hover,
.p103-mini-secondary:hover {
  filter: brightness(1.08) saturate(1.08);
}

.p103-game-card:hover {
  border-color: #fff0a2;
  box-shadow:
    0 0 18px rgba(255, 65, 225, 0.72),
    0 4px 0 rgba(42, 0, 52, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.p103-game-card::before {
  inset: 7px;
  border-color: rgba(255, 235, 145, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 24%, transparent 60%, rgba(16, 0, 25, 0.6));
}

.p103-game-card::after {
  background: linear-gradient(180deg, transparent 0 50%, rgba(20, 0, 30, 0.28) 63%, rgba(9, 0, 15, 0.78));
}

.p103-game-mark {
  display: none;
}

.p103-badge {
  border-radius: 7px 12px 12px 7px;
  transform: rotate(-2deg);
}

.p103-game-title {
  bottom: 26px;
  font-size: 24px;
}

.p103-game-meta {
  bottom: 10px;
  color: #f5d8ff;
}

.p103-jackpot {
  padding: 14px 18px;
  background:
    linear-gradient(180deg, rgba(35, 0, 45, 0.18), rgba(14, 0, 24, 0.28)),
    var(--p103-ref-jackpot) center/cover no-repeat;
}

.p103-jackpot h2,
.p103-bonus h2 {
  text-align: center;
}

.p103-prize {
  height: 34px;
  margin-top: 8px;
  backdrop-filter: blur(1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.p103-treasure {
  display: none;
}

.p103-bonus {
  padding: 18px 20px;
  background:
    linear-gradient(90deg, rgba(52, 0, 68, 0.28), rgba(15, 0, 26, 0.18)),
    var(--p103-ref-bonus) center/cover no-repeat;
}

.p103-bonus h2 {
  max-width: 140px;
  margin-bottom: 6px;
  font-size: 29px;
}

.p103-bonus p {
  max-width: 150px;
  color: #fff3ca;
  text-shadow: 0 2px 0 rgba(34, 0, 39, 0.95);
}

.p103-bottom {
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(116, 0, 132, 0.24), rgba(17, 0, 27, 0.34)),
    var(--p103-ref-footer) center bottom/cover no-repeat;
  box-shadow: 0 -6px 20px rgba(255, 47, 219, 0.28);
}

.p103-bottom button {
  text-shadow: 0 2px 0 rgba(34, 0, 39, 0.95);
}

.p103-bottom .p103-spin {
  margin: 2px 8px 4px;
  border: 0;
  background: var(--p103-ref-spin) center/contain no-repeat;
  box-shadow: none;
  clip-path: none;
}

.p103-bottom .p103-spin::after {
  display: none;
}

.p103-bottom .p103-spin strong {
  margin-top: 10px;
  color: #ffe36f;
  font-size: 29px;
}

.p103-bottom .p103-spin small {
  color: #fff5d0;
}

.p103-auth {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 49, 220, 0.16), transparent 36%),
    rgba(8, 0, 13, 0.72);
}

.p103-auth-card,
.p103-panel-pop {
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(92, 0, 111, 0.94), rgba(22, 0, 34, 0.98)),
    var(--p103-ref-jackpot) right top/48% auto no-repeat;
}

.p103-auth-card::before,
.p103-panel-pop::before {
  content: "";
  position: absolute;
  left: -34px;
  bottom: -24px;
  width: 180px;
  height: 118px;
  background: var(--p103-ref-pagoda) left bottom/cover no-repeat;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
  opacity: 0.38;
  pointer-events: none;
}

.p103-modal-slice,
.p103-panel-slices {
  width: 190px;
  height: 180px;
  background:
    linear-gradient(135deg, rgba(255, 224, 108, 0.78), rgba(255, 224, 108, 0.08) 18%, transparent 19% 30%, rgba(178, 0, 154, 0.86) 31% 64%, rgba(48, 0, 56, 0.92) 65%);
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  transform: rotate(7deg);
}

.p103-panel-head {
  padding-right: 90px;
}

.p103-panel-item {
  position: relative;
  overflow: hidden;
  min-height: 76px;
}

.p103-panel-item::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 76px;
  height: 76px;
  background: radial-gradient(circle, rgba(255, 218, 102, 0.28), transparent 68%);
  pointer-events: none;
}

.p103-close {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(132, 0, 145, 0.94), rgba(36, 0, 48, 0.96));
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
}

/* Final clean polish: keep raster texture without duplicated source text */
.p103-topbar {
  background:
    linear-gradient(180deg, rgba(51, 0, 70, 0.98), rgba(31, 0, 47, 0.96)),
    radial-gradient(circle at 18% 0, rgba(255, 52, 224, 0.28), transparent 34%),
    radial-gradient(circle at 72% 0, rgba(255, 224, 103, 0.16), transparent 30%);
}

.p103-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 5px;
  background: linear-gradient(90deg, transparent, #ffd86c 8%, #ff47dc 50%, #ffd86c 92%, transparent);
  box-shadow: 0 0 12px rgba(255, 70, 220, 0.62);
  pointer-events: none;
}

.p103-content {
  grid-template-rows: 232px 204px;
}

.p103-hero {
  background:
    linear-gradient(90deg, rgba(35, 0, 48, 0.92), rgba(88, 0, 103, 0.78) 44%, rgba(31, 0, 44, 0.9)),
    radial-gradient(circle at 24% 28%, rgba(255, 62, 222, 0.42), transparent 22%),
    radial-gradient(circle at 75% 18%, rgba(255, 223, 99, 0.2), transparent 20%),
    linear-gradient(180deg, #4b006a, #1b0028);
}

.p103-hero::before {
  inset: 11px;
  background:
    linear-gradient(90deg, rgba(19, 0, 28, 0.1), rgba(53, 0, 69, 0.46) 48%, rgba(18, 0, 29, 0.34)),
    var(--p103-ref-pagoda) left bottom/360px 220px no-repeat,
    radial-gradient(circle at 71% 17%, rgba(255, 78, 224, 0.26), transparent 17%);
}

.p103-hero::after {
  right: 8px;
  bottom: 4px;
  width: 288px;
  height: 222px;
  background: var(--p103-ref-lady) center bottom/cover no-repeat;
}

.p103-hero-lady {
  display: none;
}

.p103-hero-copy {
  left: 260px;
  top: 47%;
  max-width: 490px;
}

.p103-hero-copy h1 {
  margin-bottom: 7px;
  font-size: 49px;
  white-space: nowrap;
}

.p103-hero-copy p {
  max-width: 470px;
  margin-inline: auto;
  font-size: 19px;
}

.p103-hero-copy .p103-primary {
  min-width: 172px;
  height: 49px;
  font-size: 17px;
}

.p103-game-card::before {
  inset: auto 0 0;
  height: 78px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(28, 0, 38, 0.78) 26%, rgba(10, 0, 16, 0.96));
}

.p103-game-title {
  bottom: 30px;
  padding-inline: 4px;
  color: #ffda62;
  background: linear-gradient(180deg, #fff3a8 0%, #ffd04c 38%, #f38a24 72%, #fff2a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 3px 0 #5f1600, 0 0 10px rgba(255, 208, 70, 0.72);
}

.p103-game-meta {
  bottom: 11px;
  color: #f7ddff;
  text-shadow: 0 2px 0 rgba(21, 0, 27, 0.92);
}

.p103-jackpot {
  background:
    linear-gradient(180deg, rgba(68, 0, 82, 0.96), rgba(19, 0, 32, 0.98)),
    radial-gradient(circle at 73% 90%, rgba(255, 197, 48, 0.3), transparent 34%);
}

.p103-jackpot::before,
.p103-bonus::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.p103-jackpot::before {
  right: -20px;
  bottom: -24px;
  width: 152px;
  height: 106px;
  background: var(--p103-ref-jackpot) right bottom/248px 306px no-repeat;
  opacity: 0.86;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 10px rgba(255, 212, 88, 0.72));
}

.p103-bonus {
  background:
    linear-gradient(90deg, rgba(71, 0, 91, 0.96), rgba(25, 0, 39, 0.86)),
    radial-gradient(circle at 80% 50%, rgba(255, 204, 50, 0.22), transparent 38%);
}

.p103-bonus::before {
  right: -8px;
  bottom: -2px;
  width: 128px;
  height: 104px;
  background: var(--p103-ref-bonus) right bottom/164px auto no-repeat;
  opacity: 0.9;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

.p103-bonus h2,
.p103-bonus p {
  position: relative;
  z-index: 1;
}

.p103-bottom {
  background:
    linear-gradient(180deg, rgba(108, 0, 126, 0.94), rgba(18, 0, 29, 0.98)),
    radial-gradient(circle at 50% 0, rgba(255, 64, 223, 0.26), transparent 54%);
}

.p103-bottom .p103-spin {
  margin: 5px 8px 4px;
  border: 2px solid #ffd96d;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(180deg, #ff5cec 0%, #b300b4 52%, #5b0061 100%);
  box-shadow:
    0 0 13px rgba(255, 52, 222, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.p103-bottom .p103-spin strong {
  margin-top: 0;
  font-size: 28px;
}

.p103-auth-card,
.p103-panel-pop {
  background:
    linear-gradient(180deg, rgba(97, 0, 116, 0.97), rgba(21, 0, 34, 0.99)),
    radial-gradient(circle at 84% 16%, rgba(255, 216, 92, 0.18), transparent 32%),
    radial-gradient(circle at 12% 0, rgba(255, 55, 223, 0.22), transparent 30%);
}

.p103-panel-pop {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(620px, calc(100vw - 36px));
  max-height: min(648px, calc(100vh - 28px));
  overflow: hidden auto;
  transform: translate(-50%, -50%);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 216, 103, 0.45) rgba(30, 0, 44, 0.28);
}

.p103-panel-pop.show {
  display: block;
}

.p103-panel-pop::-webkit-scrollbar {
  width: 8px;
}

.p103-panel-pop::-webkit-scrollbar-track {
  background: rgba(26, 0, 38, 0.35);
}

.p103-panel-pop::-webkit-scrollbar-thumb {
  border: 2px solid rgba(28, 0, 42, 0.86);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 221, 102, 0.75), rgba(255, 71, 224, 0.7));
}

.p103-panel-pop.is-loading .p103-panel-head::after {
  content: "同步中";
  position: absolute;
  right: 0;
  top: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 222, 111, 0.52);
  border-radius: 999px;
  color: #fff3bf;
  background: rgba(35, 0, 48, 0.76);
  font-size: 12px;
  font-weight: 950;
}

.p103-auth-card {
  position: relative;
}

.p103-panel-wide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}

.p103-panel-wide .p103-panel-item {
  min-height: 54px;
  padding: 10px;
}

.p103-panel-grid:has(.p103-panel-wide) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.p103-panel-wide > .p103-form-row,
.p103-panel-wide > .p103-panel-list,
.p103-panel-wide > .p103-panel-empty,
.p103-panel-wide > .p103-vip-bar {
  grid-column: 1 / -1;
}

.p103-panel-wide .p103-panel-item strong {
  font-size: 18px;
}

.p103-panel-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.p103-list-row {
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(78px, auto);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 2px solid rgba(255, 216, 103, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(74, 0, 92, 0.76), rgba(25, 0, 39, 0.84)),
    radial-gradient(circle at 100% 50%, rgba(255, 214, 88, 0.14), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.p103-list-row b,
.p103-list-row span,
.p103-list-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p103-list-row b {
  color: #ffe47e;
  font-size: 14px;
}

.p103-list-row span {
  color: #f4d7ff;
  font-size: 12px;
  font-weight: 800;
}

.p103-list-row em {
  color: #fff3ba;
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.p103-list-row.text {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) auto;
}

.p103-list-row:hover,
.p103-panel-item:hover {
  border-color: rgba(255, 231, 131, 0.72);
  box-shadow: 0 0 12px rgba(255, 58, 223, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.p103-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px;
  margin-top: 8px;
}

.p103-form-row input {
  min-width: 0;
  height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 2px solid rgba(255, 216, 103, 0.48);
  border-radius: 8px;
  outline: 0;
  color: #fff9d6;
  background: linear-gradient(180deg, rgba(23, 0, 34, 0.95), rgba(65, 0, 82, 0.74));
  font: inherit;
  font-weight: 850;
}

.p103-mini-primary,
.p103-mini-secondary {
  min-height: 34px;
  border: 2px solid rgba(255, 216, 103, 0.62);
  border-radius: 9px;
  color: #fffbd8;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  background: linear-gradient(180deg, #ff58ef, #9c009e 58%, #51005a);
  box-shadow: 0 0 10px rgba(255, 52, 222, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.p103-mini-primary:active,
.p103-mini-secondary:active,
.p103-primary:active,
.p103-secondary:active,
.p103-bottom button:active,
.p103-icon-btn:active,
.p103-tab:active {
  transform: translateY(1px);
}

.p103-mini-secondary {
  background: linear-gradient(180deg, rgba(255, 238, 152, 0.2), rgba(70, 0, 91, 0.9));
  color: #ffe78b;
}

.p103-mini-primary:disabled,
.p103-mini-secondary:disabled {
  opacity: 0.58;
  cursor: wait;
}

.p103-panel-empty {
  margin-top: 12px;
  padding: 18px;
  border: 1px dashed rgba(255, 216, 103, 0.42);
  border-radius: 8px;
  color: #efd0f8;
  text-align: center;
  font-weight: 850;
}

.p103-language-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 12px;
  grid-column: 1 / -1;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 2px solid rgba(255, 216, 103, 0.38);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(78, 0, 96, 0.84), rgba(22, 0, 36, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.p103-language-card b {
  display: block;
  color: #ffe47e;
  font-size: 15px;
  font-weight: 950;
}

.p103-language-card span {
  display: block;
  margin-top: 3px;
  color: #f4d7ff;
  font-size: 12px;
  font-weight: 800;
}

.p103-language-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.p103-lang-btn {
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border: 2px solid rgba(255, 216, 103, 0.46);
  border-radius: 8px;
  color: #ffe9ff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 238, 152, 0.14), rgba(70, 0, 91, 0.9));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.p103-lang-btn.active {
  color: #fff8d1;
  border-color: rgba(255, 232, 123, 0.9);
  background: linear-gradient(180deg, #ff63ed, #a000b2 58%, #59006a);
  box-shadow: 0 0 12px rgba(255, 58, 223, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

#p103PurpleLobby[data-lang="my"],
#p103PurpleLobby[data-lang="km"] {
  font-family: "Noto Sans Myanmar", "Noto Sans Khmer", "Khmer MN", "Myanmar MN", "Padauk", "DaunPenh", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

#p103PurpleLobby[data-lang="my"] .p103-tab,
#p103PurpleLobby[data-lang="km"] .p103-tab,
#p103PurpleLobby[data-lang="my"] .p103-icon-btn,
#p103PurpleLobby[data-lang="km"] .p103-icon-btn,
#p103PurpleLobby[data-lang="my"] .p103-bottom button,
#p103PurpleLobby[data-lang="km"] .p103-bottom button {
  font-size: 11px;
}

#p103PurpleLobby[data-lang="my"] .p103-hero-copy h1,
#p103PurpleLobby[data-lang="km"] .p103-hero-copy h1 {
  line-height: 1.08;
}

.p103-vip-bar {
  height: 11px;
  margin: 12px 0 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 103, 0.46);
  border-radius: 999px;
  background: rgba(18, 0, 28, 0.92);
}

.p103-vip-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4ce6, #ffd861);
  box-shadow: 0 0 12px rgba(255, 218, 97, 0.7);
}

.p103-wallet-panel .p103-panel-grid {
  gap: 8px;
}

.p103-status-pill {
  justify-self: end;
  min-width: 58px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 231, 133, 0.46);
  border-radius: 999px;
  background: rgba(255, 216, 103, 0.12);
  text-align: center;
}

.p103-status-approved .p103-status-pill,
.p103-profit-up em {
  color: #9cff9f;
}

.p103-status-rejected .p103-status-pill,
.p103-profit-down em {
  color: #ff9ab4;
}

.p103-status-pending .p103-status-pill {
  color: #ffe36f;
}

@media (max-width: 760px) {
  .p103-panel-pop {
    width: min(520px, calc(100vw - 22px));
  }

  .p103-panel-grid:has(.p103-panel-wide) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p103-panel-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p103-list-row,
  .p103-list-row.text {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .p103-list-row em,
  .p103-status-pill {
    justify-self: start;
    text-align: left;
  }

  .p103-language-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .p103-language-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final lobby layout guard: keep tab game entries touchable after all polish layers. */
#p103PurpleLobby .p103-content {
  grid-template-rows: 232px 204px;
}

#p103PurpleLobby .p103-games-wrap {
  height: 204px;
  min-height: 204px;
}

#p103PurpleLobby .p103-card-row {
  height: 204px;
  min-height: 204px;
  align-items: stretch;
}

#p103PurpleLobby .p103-game-card {
  height: 190px;
  min-height: 190px;
  align-self: stretch;
}

/* Ultra lobby polish layer */
#p103PurpleLobby {
  --p103-deep: #100018;
  --p103-plum: #370054;
  --p103-violet: #760091;
  --p103-magenta: #ff42e6;
  --p103-amber: #ffd96d;
  --p103-cyan: #77ecff;
  --p103-glass: rgba(43, 0, 62, 0.74);
  --p103-line: rgba(255, 221, 116, 0.66);
  background:
    radial-gradient(ellipse at 50% -16%, rgba(255, 215, 107, 0.28), transparent 34%),
    radial-gradient(circle at 18% 22%, rgba(255, 52, 223, 0.38), transparent 26%),
    radial-gradient(circle at 84% 20%, rgba(111, 236, 255, 0.14), transparent 22%),
    radial-gradient(circle at 66% 92%, rgba(255, 58, 220, 0.22), transparent 32%),
    linear-gradient(180deg, #230032 0%, #4a0067 43%, #13001e 100%);
}

#p103PurpleLobby::before,
#p103PurpleLobby::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#p103PurpleLobby::before {
  background:
    linear-gradient(112deg, transparent 0 14%, rgba(255, 222, 117, 0.13) 15%, transparent 16% 42%, rgba(255, 66, 230, 0.09) 43%, transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 82px);
  opacity: 0.75;
  animation: p103AmbientDrift 11s ease-in-out infinite alternate;
}

#p103PurpleLobby::after {
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0 58%, rgba(5, 0, 10, 0.58) 100%),
    linear-gradient(90deg, rgba(255, 219, 107, 0.08), transparent 13%, transparent 87%, rgba(255, 219, 107, 0.08));
  mix-blend-mode: multiply;
}

#p103PurpleLobby .p103-shell {
  isolation: isolate;
  filter: drop-shadow(0 26px 42px rgba(5, 0, 13, 0.52));
}

#p103PurpleLobby .p103-shell::before {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 65, 230, 0.15), transparent 36%),
    radial-gradient(circle at 8% 10%, rgba(255, 218, 103, 0.1), transparent 21%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 54px),
    linear-gradient(45deg, rgba(255, 220, 108, 0.04) 0 1px, transparent 1px 64px);
  border: 1px solid rgba(255, 225, 131, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 90px rgba(255, 53, 221, 0.14);
  opacity: 1;
}

#p103PurpleLobby .p103-shell::after {
  inset: 92px 12px 98px;
  z-index: -1;
  border: 1px solid rgba(255, 224, 121, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 73, 229, 0.18), transparent 26%),
    radial-gradient(circle at 84% 20%, rgba(119, 236, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 44%, rgba(16, 0, 24, 0.22));
  box-shadow:
    0 0 34px rgba(255, 65, 226, 0.22),
    inset 0 0 46px rgba(255, 222, 112, 0.08);
}

#p103PurpleLobby .p103-topbar {
  min-height: 82px;
  padding: 4px 8px 8px;
  border: 1px solid rgba(255, 224, 125, 0.22);
  border-bottom: 2px solid rgba(255, 225, 124, 0.9);
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(180deg, rgba(79, 0, 103, 0.92), rgba(26, 0, 42, 0.92)),
    radial-gradient(circle at 12% 0, rgba(255, 67, 229, 0.42), transparent 34%),
    radial-gradient(circle at 80% 0, rgba(255, 219, 107, 0.22), transparent 30%);
  box-shadow:
    0 10px 24px rgba(12, 0, 22, 0.48),
    0 0 22px rgba(255, 60, 224, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(1.2);
}

#p103PurpleLobby .p103-topbar::before {
  content: "";
  position: absolute;
  inset: 5px 7px auto;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

#p103PurpleLobby .p103-topbar::after {
  bottom: -5px;
  height: 6px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 221, 108, 0.92) 9%, rgba(255, 66, 230, 0.9) 48%, rgba(119, 236, 255, 0.58) 64%, rgba(255, 221, 108, 0.9) 92%, transparent),
    radial-gradient(circle at 50% 50%, #ffffff, transparent 18%);
  box-shadow: 0 0 18px rgba(255, 76, 229, 0.76);
}

#p103PurpleLobby .p103-profile,
#p103PurpleLobby .p103-balance,
#p103PurpleLobby .p103-wallet {
  position: relative;
  overflow: hidden;
}

#p103PurpleLobby .p103-profile {
  min-height: 68px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(255, 224, 125, 0.34);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 44%),
    linear-gradient(90deg, rgba(255, 66, 230, 0.2), rgba(35, 0, 52, 0.4));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#p103PurpleLobby .p103-profile::after,
#p103PurpleLobby .p103-balance::after,
#p103PurpleLobby .p103-wallet::before {
  content: "";
  position: absolute;
  top: -45%;
  width: 44px;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
  transform: rotate(18deg);
  animation: p103Sweep 4.8s ease-in-out infinite;
}

#p103PurpleLobby .p103-profile::after {
  left: -70px;
}

#p103PurpleLobby .p103-balance::after {
  left: -96px;
  animation-delay: 1.15s;
}

#p103PurpleLobby .p103-wallet::before {
  left: -88px;
  animation-delay: 2.05s;
}

#p103PurpleLobby .p103-avatar {
  border-width: 2px;
  background:
    radial-gradient(circle at 44% 28%, rgba(255, 255, 255, 0.88) 0 9%, transparent 10%),
    radial-gradient(circle at 50% 50%, #ffe8a6 0 16%, #d76bcd 17% 42%, #6f007f 59%, #22002f 78%);
  box-shadow:
    0 0 0 3px rgba(103, 0, 128, 0.72),
    0 0 0 5px rgba(255, 218, 102, 0.64),
    0 0 22px rgba(255, 68, 229, 0.68);
}

#p103PurpleLobby .p103-avatar::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(119, 236, 255, 0.34);
  border-left-color: transparent;
  filter: drop-shadow(0 0 8px rgba(119, 236, 255, 0.46));
  animation: p103Orbit 7s linear infinite;
}

#p103PurpleLobby .p103-name strong,
#p103PurpleLobby .p103-balance strong {
  color: transparent;
  background: linear-gradient(180deg, #fffbe1 0%, #ffd96d 42%, #ff9c35 78%, #fff0a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 3px 0 rgba(91, 24, 0, 0.72), 0 0 14px rgba(255, 220, 108, 0.38);
}

#p103PurpleLobby .p103-name span {
  height: 24px;
  border-color: rgba(255, 231, 143, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 239, 161, 0.16), transparent 45%),
    linear-gradient(180deg, #5f086d, #20002f);
}

#p103PurpleLobby .p103-exp {
  height: 9px;
  border: 1px solid rgba(255, 225, 126, 0.28);
}

#p103PurpleLobby .p103-exp > i,
#p103PurpleLobby .p103-vip-bar i {
  background:
    linear-gradient(90deg, #ff48e5, #ffd96d 56%, #77ecff),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.18) 0 7px, transparent 7px 14px);
  background-blend-mode: screen;
}

#p103PurpleLobby .p103-balance {
  border-color: rgba(255, 225, 126, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(90, 0, 105, 0.96), rgba(22, 0, 36, 0.97));
  box-shadow:
    0 0 16px rgba(255, 66, 230, 0.44),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 -12px 20px rgba(12, 0, 18, 0.34);
}

#p103PurpleLobby .p103-coin,
#p103PurpleLobby .p103-plus {
  box-shadow:
    0 0 0 2px rgba(99, 0, 113, 0.68),
    0 0 14px rgba(255, 219, 107, 0.72),
    inset 0 0 10px rgba(255, 255, 255, 0.25);
}

#p103PurpleLobby .p103-plus:hover {
  color: #ffffff;
  transform: scale(1.04);
}

#p103PurpleLobby .p103-wallet {
  border-color: rgba(255, 229, 133, 0.95);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(180deg, #ff63f1 0%, #b000b8 50%, #4c0058 100%);
  box-shadow:
    0 7px 0 rgba(49, 0, 60, 0.74),
    0 0 20px rgba(255, 72, 229, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

#p103PurpleLobby .p103-tools {
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(255, 224, 125, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(19, 0, 30, 0.32);
}

#p103PurpleLobby .p103-icon-btn {
  position: relative;
  overflow: hidden;
  height: 62px;
  border: 1px solid transparent;
  border-radius: 14px;
}

#p103PurpleLobby .p103-icon-btn::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 231, 132, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 64, 226, 0.03));
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#p103PurpleLobby .p103-icon-btn:hover,
#p103PurpleLobby .p103-icon-btn:focus-visible {
  border-color: rgba(255, 225, 126, 0.5);
  background: rgba(255, 255, 255, 0.04);
  outline: 0;
}

#p103PurpleLobby .p103-icon-btn:hover::before,
#p103PurpleLobby .p103-icon-btn:focus-visible::before {
  opacity: 1;
  transform: translateY(-1px);
}

#p103PurpleLobby .p103-icon-btn i,
#p103PurpleLobby .p103-icon-btn span {
  position: relative;
  z-index: 1;
}

#p103PurpleLobby .p103-tabs {
  height: 52px;
  align-self: center;
  padding: 6px 34px;
  border: 1px solid rgba(255, 225, 126, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(30, 0, 44, 0.62)),
    radial-gradient(circle at 50% 0, rgba(255, 63, 226, 0.22), transparent 68%);
  box-shadow:
    0 8px 20px rgba(11, 0, 20, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#p103PurpleLobby .p103-tab {
  min-width: 124px;
  height: 40px;
  border-color: rgba(255, 225, 126, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(99, 0, 121, 0.88), rgba(27, 0, 43, 0.92));
  box-shadow:
    0 4px 0 rgba(16, 0, 25, 0.68),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#p103PurpleLobby .p103-tab.active {
  border-color: #fff0ad;
  color: #591700;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 42%),
    linear-gradient(180deg, #fff47a 0%, #ffc948 38%, #f08b23 78%, #a73a00 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(255, 210, 72, 0.72),
    0 5px 0 rgba(92, 24, 0, 0.7);
}

#p103PurpleLobby .p103-main {
  position: relative;
}

#p103PurpleLobby .p103-main::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border: 1px solid rgba(255, 225, 126, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 34% 0, rgba(255, 67, 229, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(18, 0, 28, 0.16));
  box-shadow: inset 0 0 34px rgba(255, 224, 123, 0.06);
  pointer-events: none;
}

#p103PurpleLobby .p103-hero {
  border-color: rgba(255, 225, 126, 0.98);
  border-radius: 14px;
  outline: 1px solid rgba(255, 255, 255, 0.12);
  outline-offset: -6px;
  background:
    linear-gradient(90deg, rgba(19, 0, 29, 0.54), rgba(84, 0, 100, 0.36) 48%, rgba(13, 0, 22, 0.68)),
    radial-gradient(circle at 36% 10%, rgba(255, 255, 255, 0.16), transparent 24%),
    var(--p103-ref-hero) center/cover no-repeat;
  box-shadow:
    0 10px 0 rgba(18, 0, 28, 0.56),
    0 0 24px rgba(255, 62, 226, 0.5),
    0 0 0 1px rgba(255, 239, 160, 0.28),
    inset 0 0 30px rgba(255, 221, 111, 0.18);
}

#p103PurpleLobby .p103-hero::before {
  inset: 9px;
  border-color: rgba(255, 235, 151, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(115deg, rgba(255, 221, 107, 0.16) 0 12%, transparent 13% 39%, rgba(255, 67, 229, 0.12) 40%, transparent 41%),
    linear-gradient(90deg, rgba(17, 0, 27, 0.16), rgba(78, 0, 95, 0.24) 48%, rgba(10, 0, 18, 0.52)),
    var(--p103-ref-pagoda) left bottom/362px 218px no-repeat;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08);
}

#p103PurpleLobby .p103-hero::after {
  right: 4px;
  bottom: 0;
  width: 318px;
  height: 232px;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  filter:
    drop-shadow(0 0 18px rgba(255, 222, 107, 0.84))
    drop-shadow(-10px 8px 14px rgba(41, 0, 51, 0.72));
}

#p103PurpleLobby .p103-hero-copy {
  left: 284px;
  max-width: 500px;
  padding: 8px 18px 10px;
}

#p103PurpleLobby .p103-hero-copy::before {
  content: "";
  position: absolute;
  inset: -5px -14px -8px;
  z-index: -1;
  border-left: 3px solid rgba(255, 219, 108, 0.68);
  border-right: 1px solid rgba(119, 236, 255, 0.28);
  background:
    linear-gradient(115deg, rgba(255, 218, 103, 0.13) 0 12%, transparent 13% 28%, rgba(255, 65, 226, 0.13) 29% 58%, transparent 59%),
    linear-gradient(90deg, rgba(25, 0, 38, 0.18), rgba(42, 0, 58, 0.46), rgba(25, 0, 38, 0.12));
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  filter: drop-shadow(0 0 16px rgba(255, 59, 225, 0.22));
}

#p103PurpleLobby .p103-hero-copy h1 {
  color: transparent;
  background: linear-gradient(180deg, #fffbd1 0%, #ffe176 22%, #ffb13f 58%, #fff2aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
  text-shadow:
    0 4px 0 rgba(106, 28, 0, 0.92),
    0 0 14px rgba(255, 221, 108, 0.72),
    0 0 28px rgba(255, 67, 229, 0.52);
}

#p103PurpleLobby .p103-hero-copy p {
  color: #fff7d2;
  text-shadow: 0 2px 0 rgba(27, 0, 35, 0.95), 0 0 12px rgba(255, 75, 230, 0.22);
}

#p103PurpleLobby .p103-primary,
#p103PurpleLobby .p103-secondary,
#p103PurpleLobby .p103-mini-primary,
#p103PurpleLobby .p103-mini-secondary {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 229, 135, 0.88);
  box-shadow:
    0 5px 0 rgba(51, 0, 62, 0.72),
    0 0 14px rgba(255, 62, 226, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

#p103PurpleLobby .p103-primary::after,
#p103PurpleLobby .p103-secondary::after,
#p103PurpleLobby .p103-mini-primary::after,
#p103PurpleLobby .p103-mini-secondary::after {
  content: "";
  position: absolute;
  inset: 3px 8px auto;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}

#p103PurpleLobby .p103-primary:hover,
#p103PurpleLobby .p103-secondary:hover,
#p103PurpleLobby .p103-mini-primary:hover,
#p103PurpleLobby .p103-mini-secondary:hover {
  transform: translateY(-1px);
}

#p103PurpleLobby .p103-dots {
  bottom: 13px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 225, 126, 0.22);
  border-radius: 999px;
  background: rgba(16, 0, 26, 0.38);
}

#p103PurpleLobby .p103-dots i {
  box-shadow: 0 0 8px rgba(255, 232, 121, 0.48);
}

#p103PurpleLobby .p103-games-wrap {
  border: 1px solid rgba(255, 225, 126, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(17, 0, 27, 0.16)),
    radial-gradient(circle at 50% 0, rgba(255, 64, 226, 0.18), transparent 72%);
  box-shadow: inset 0 0 28px rgba(255, 223, 116, 0.06);
}

#p103PurpleLobby .p103-games-wrap::before,
#p103PurpleLobby .p103-games-wrap::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  z-index: 13;
  width: 54px;
  pointer-events: none;
}

#p103PurpleLobby .p103-games-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(19, 0, 30, 0.78), transparent);
}

#p103PurpleLobby .p103-games-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(19, 0, 30, 0.78), transparent);
}

#p103PurpleLobby .p103-card-row {
  padding: 7px 10px 6px;
  gap: 15px;
  perspective: 900px;
  touch-action: pan-x;
}

#p103PurpleLobby .p103-game-card {
  border-width: 2px;
  border-color: rgba(255, 225, 126, 0.88);
  border-radius: 14px;
  transform: translateZ(0);
  box-shadow:
    0 9px 0 rgba(16, 0, 27, 0.76),
    0 0 16px rgba(255, 65, 226, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -74px 42px rgba(9, 0, 15, 0.84);
}

#p103PurpleLobby .p103-game-card::before {
  inset: 7px;
  height: auto;
  border: 1px solid rgba(255, 233, 144, 0.36);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0 14%, transparent 15% 52%, rgba(119, 236, 255, 0.1) 53%, transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%, rgba(9, 0, 16, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 221, 112, 0.2);
}

#p103PurpleLobby .p103-game-card::after {
  background:
    linear-gradient(180deg, transparent 0 46%, rgba(25, 0, 33, 0.46) 64%, rgba(8, 0, 15, 0.96)),
    linear-gradient(115deg, transparent 0 16%, rgba(255, 255, 255, 0.16) 17%, transparent 18% 100%);
}

#p103PurpleLobby .p103-game-card:hover,
#p103PurpleLobby .p103-game-card:focus-within {
  border-color: #fff4b2;
  transform: translateY(-5px) rotateX(2deg);
  box-shadow:
    0 14px 0 rgba(16, 0, 27, 0.68),
    0 0 24px rgba(255, 76, 230, 0.68),
    0 0 0 1px rgba(255, 245, 184, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -74px 42px rgba(9, 0, 15, 0.84);
}

#p103PurpleLobby .p103-game-card:active {
  transform: translateY(-1px) scale(0.985);
}

#p103PurpleLobby .p103-game-card button:focus-visible {
  outline: 3px solid rgba(119, 236, 255, 0.86);
  outline-offset: -6px;
}

#p103PurpleLobby .p103-badge {
  left: 0;
  top: 10px;
  min-width: 50px;
  border-radius: 0 11px 11px 0;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
  box-shadow:
    0 0 10px rgba(255, 52, 52, 0.66),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#p103PurpleLobby .p103-game-title {
  bottom: 31px;
  text-shadow:
    0 3px 0 rgba(77, 17, 0, 0.94),
    0 0 11px rgba(255, 216, 87, 0.78),
    0 0 20px rgba(255, 64, 226, 0.32);
}

#p103PurpleLobby .p103-game-meta {
  bottom: 12px;
  font-size: 12px;
}

#p103PurpleLobby .p103-game-nav {
  z-index: 16;
  border-color: rgba(255, 230, 138, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(255, 87, 237, 0.96), rgba(112, 0, 135, 0.98));
  box-shadow:
    0 0 18px rgba(255, 65, 226, 0.72),
    0 6px 0 rgba(26, 0, 39, 0.66),
    inset 0 0 14px rgba(255, 238, 160, 0.24);
}

#p103PurpleLobby .p103-side {
  filter: drop-shadow(0 12px 18px rgba(9, 0, 18, 0.28));
}

#p103PurpleLobby .p103-jackpot,
#p103PurpleLobby .p103-bonus {
  border-color: rgba(255, 225, 126, 0.9);
  border-radius: 14px;
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -5px;
  box-shadow:
    0 8px 0 rgba(15, 0, 25, 0.66),
    0 0 18px rgba(255, 65, 226, 0.38),
    inset 0 0 24px rgba(255, 223, 116, 0.08);
}

#p103PurpleLobby .p103-jackpot::after,
#p103PurpleLobby .p103-bonus::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0 12%, transparent 13% 48%, rgba(119, 236, 255, 0.07) 49%, transparent 50%),
    radial-gradient(circle at 50% 0, rgba(255, 232, 132, 0.14), transparent 56%);
}

#p103PurpleLobby .p103-jackpot h2,
#p103PurpleLobby .p103-bonus h2 {
  position: relative;
  z-index: 1;
  color: transparent;
  background: linear-gradient(180deg, #fffbd0, #ffe06f 46%, #ff9730 74%, #fff2ad);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 3px 0 rgba(101, 24, 0, 0.86), 0 0 13px rgba(255, 218, 101, 0.46);
}

#p103PurpleLobby .p103-prize {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 226, 130, 0.54);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(90deg, rgba(116, 0, 139, 0.88), rgba(23, 0, 36, 0.92));
}

#p103PurpleLobby .p103-prize::before {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: p103NumberSweep 4.2s ease-in-out infinite;
}

#p103PurpleLobby .p103-prize span,
#p103PurpleLobby .p103-prize strong {
  position: relative;
  z-index: 1;
}

#p103PurpleLobby .p103-prize strong {
  color: #fff7c5;
  text-shadow: 0 0 10px rgba(255, 218, 93, 0.36);
}

#p103PurpleLobby .p103-bonus p {
  position: relative;
  z-index: 1;
}

#p103PurpleLobby .p103-bottom {
  position: relative;
  border-color: rgba(255, 225, 126, 0.72);
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(112, 0, 132, 0.94), rgba(18, 0, 29, 0.99)),
    radial-gradient(circle at 50% 0, rgba(255, 64, 226, 0.3), transparent 60%);
  box-shadow:
    0 -10px 28px rgba(255, 55, 224, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#p103PurpleLobby .p103-bottom::before,
#p103PurpleLobby .p103-bottom::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

#p103PurpleLobby .p103-bottom::before {
  left: 18px;
  right: 18px;
  top: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 232, 137, 0.9), rgba(255, 65, 226, 0.76), rgba(119, 236, 255, 0.48), transparent);
  box-shadow: 0 0 10px rgba(255, 75, 230, 0.7);
}

#p103PurpleLobby .p103-bottom::after {
  left: 28%;
  right: 28%;
  bottom: 0;
  height: 20px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 222, 112, 0.3), transparent 70%);
}

#p103PurpleLobby .p103-bottom button {
  position: relative;
  overflow: hidden;
  border-right-color: rgba(255, 255, 255, 0.06);
}

#p103PurpleLobby .p103-bottom button::before {
  content: "";
  position: absolute;
  inset: 7px 5px;
  border: 1px solid rgba(255, 225, 126, 0);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 65, 226, 0.04));
  opacity: 0;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

#p103PurpleLobby .p103-bottom button:hover::before,
#p103PurpleLobby .p103-bottom button:focus-visible::before {
  border-color: rgba(255, 225, 126, 0.32);
  opacity: 1;
}

#p103PurpleLobby .p103-bottom button i,
#p103PurpleLobby .p103-bottom button span {
  position: relative;
  z-index: 1;
}

#p103PurpleLobby .p103-bottom .p103-spin {
  overflow: visible;
  border-color: rgba(255, 236, 154, 0.96);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 35%),
    linear-gradient(180deg, #ff62ef 0%, #bd00bf 51%, #590061 100%);
  box-shadow:
    0 0 0 2px rgba(93, 0, 108, 0.8),
    0 0 24px rgba(255, 66, 230, 0.78),
    0 6px 0 rgba(41, 0, 49, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

#p103PurpleLobby .p103-bottom .p103-spin::before {
  inset: -8px;
  border: 1px solid rgba(255, 222, 112, 0.36);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 224, 116, 0.18), transparent 62%);
  opacity: 1;
}

#p103PurpleLobby .p103-bottom .p103-spin::after {
  display: block;
  inset: 4px 12px auto;
  height: 34%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent);
}

#p103PurpleLobby .p103-bottom .p103-spin strong {
  color: transparent;
  background: linear-gradient(180deg, #fffbd7, #ffe16f 48%, #ff9d2f 80%, #fff4b1);
  -webkit-background-clip: text;
  background-clip: text;
}

#p103PurpleLobby .p103-auth {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 65, 226, 0.2), transparent 36%),
    radial-gradient(circle at 50% 60%, rgba(119, 236, 255, 0.08), transparent 28%),
    rgba(7, 0, 12, 0.78);
}

#p103PurpleLobby .p103-auth-card,
#p103PurpleLobby .p103-panel-pop {
  border-color: rgba(255, 230, 139, 0.92);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(94, 0, 114, 0.97), rgba(17, 0, 29, 0.99)),
    radial-gradient(circle at 86% 16%, rgba(255, 220, 107, 0.2), transparent 30%);
  box-shadow:
    0 18px 44px rgba(5, 0, 12, 0.64),
    0 0 28px rgba(255, 65, 226, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

#p103PurpleLobby .p103-auth-card::after,
#p103PurpleLobby .p103-panel-pop::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 235, 155, 0.22);
  border-radius: 12px;
  pointer-events: none;
}

#p103PurpleLobby .p103-field input,
#p103PurpleLobby .p103-form-row input {
  border-color: rgba(255, 224, 128, 0.58);
  color: #fffbe0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%),
    rgba(17, 0, 27, 0.86);
  box-shadow: inset 0 0 12px rgba(255, 62, 226, 0.08);
}

#p103PurpleLobby .p103-panel-item,
#p103PurpleLobby .p103-list-row,
#p103PurpleLobby .p103-language-card {
  border-color: rgba(255, 224, 128, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(180deg, rgba(79, 0, 100, 0.82), rgba(20, 0, 34, 0.88));
}

#p103PurpleLobby .p103-lang-btn {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 224, 128, 0.5);
  border-radius: 10px;
}

#p103PurpleLobby .p103-lang-btn.active {
  border-color: rgba(255, 238, 157, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(180deg, #ff63ee, #aa00b4 56%, #550064);
}

#p103PurpleLobby .p103-toast {
  border-color: rgba(255, 232, 138, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%),
    rgba(31, 0, 45, 0.94);
  box-shadow:
    0 0 22px rgba(255, 65, 226, 0.54),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@keyframes p103AmbientDrift {
  from {
    transform: translate3d(-10px, -6px, 0);
  }
  to {
    transform: translate3d(10px, 6px, 0);
  }
}

@keyframes p103Sweep {
  0%,
  36% {
    transform: translateX(0) rotate(18deg);
  }
  68%,
  100% {
    transform: translateX(360px) rotate(18deg);
  }
}

@keyframes p103Orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes p103NumberSweep {
  0%,
  42% {
    transform: translateX(0);
  }
  72%,
  100% {
    transform: translateX(360%);
  }
}

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


/* P103 mobile landscape polish and boot gate */
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  background: #090010;
}

body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#GameCanvas,
#Cocos2dGameContainer,
#p103PurpleLobby {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#p103PurpleLobby {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 65, 223, 0.42), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(255, 216, 82, 0.28), transparent 20%),
    radial-gradient(circle at 48% 118%, rgba(255, 29, 200, 0.2), transparent 38%),
    linear-gradient(180deg, #360051 0%, #200037 47%, #07000e 100%);
}

#p103PurpleLobby::before,
#p103PurpleLobby::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

#p103PurpleLobby::before {
  inset: -20%;
  background:
    conic-gradient(from 18deg at 50% 50%, transparent 0deg, rgba(255, 214, 102, 0.18) 26deg, transparent 58deg, transparent 148deg, rgba(255, 55, 219, 0.14) 185deg, transparent 226deg),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,255,255,.035) 59px 60px);
  animation: p103LobbyAura 12s linear infinite;
}

#p103PurpleLobby::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .34));
}

.p103-shell {
  width: 100%;
  height: 100%;
  min-width: 0 !important;
  min-height: 0 !important;
  padding:
    max(8px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  grid-template-rows: clamp(58px, 13vh, 82px) clamp(38px, 8vh, 52px) minmax(0, 1fr) clamp(62px, 14vh, 90px) !important;
  gap: clamp(5px, 1.2vh, 10px) !important;
}

.p103-topbar {
  grid-template-columns: minmax(170px, 1.25fr) minmax(160px, .9fr) minmax(122px, .7fr) minmax(260px, 1.6fr) !important;
  gap: clamp(8px, 1.4vw, 16px) !important;
}

.p103-profile { grid-template-columns: clamp(48px, 7vh, 68px) minmax(0, 1fr) !important; }
.p103-avatar { width: clamp(46px, 8.5vh, 64px) !important; height: clamp(46px, 8.5vh, 64px) !important; }
.p103-name strong { font-size: clamp(14px, 2.6vh, 19px) !important; }
.p103-name span { height: clamp(18px, 3.2vh, 23px) !important; font-size: clamp(11px, 2vh, 14px) !important; }
.p103-balance,
.p103-wallet { height: clamp(44px, 9vh, 58px) !important; }
.p103-balance strong { font-size: clamp(18px, 4vh, 25px) !important; }
.p103-icon-btn { height: clamp(44px, 10vh, 68px) !important; font-size: clamp(10px, 1.9vh, 12px) !important; }
.p103-icon-btn i { font-size: clamp(20px, 4.5vh, 27px) !important; }

.p103-tabs {
  grid-auto-columns: minmax(clamp(86px, 14vw, 118px), max-content) !important;
  gap: clamp(6px, 1vw, 10px) !important;
  padding-bottom: 2px !important;
}
.p103-tab { height: clamp(32px, 6.6vh, 42px) !important; min-width: clamp(86px, 14vw, 116px) !important; padding: 0 clamp(10px, 1.8vw, 18px) !important; font-size: clamp(12px, 2.2vh, 15px) !important; }

.p103-main {
  grid-template-columns: minmax(0, 1fr) clamp(180px, 23vw, 246px) !important;
  gap: clamp(8px, 1.4vw, 16px) !important;
}
.p103-content { grid-template-rows: minmax(112px, 1fr) clamp(142px, 28vh, 204px) !important; gap: clamp(7px, 1.4vh, 12px) !important; }
.p103-hero-copy { left: clamp(18px, 3vw, 36px) !important; max-width: 62% !important; }
.p103-hero-copy h1 { font-size: clamp(24px, 7vh, 54px) !important; }
.p103-hero-copy p { font-size: clamp(13px, 2.7vh, 19px) !important; margin-bottom: clamp(8px, 2vh, 18px) !important; }
.p103-primary,
.p103-secondary { min-height: clamp(34px, 6.2vh, 42px) !important; padding: 0 clamp(14px, 2vw, 22px) !important; }
.p103-hero-lady { right: clamp(42px, 10vw, 104px) !important; width: clamp(96px, 17vh, 154px) !important; }

.p103-card-row {
  grid-auto-columns: clamp(112px, 15vw, 156px) !important;
  gap: clamp(8px, 1.2vw, 13px) !important;
  padding: 2px 2px max(5px, env(safe-area-inset-bottom)) !important;
  touch-action: pan-x;
}
.p103-game-card {
  min-width: clamp(112px, 15vw, 156px) !important;
  border-radius: clamp(10px, 1.8vh, 16px) !important;
  transform: translateZ(0);
}
.p103-game-card:active { transform: translateY(2px) scale(.985); }
.p103-game-mark { width: clamp(48px, 9vh, 66px) !important; height: clamp(48px, 9vh, 66px) !important; font-size: clamp(22px, 4.8vh, 31px) !important; }
.p103-game-title { bottom: clamp(21px, 4.5vh, 28px) !important; font-size: clamp(15px, 3.3vh, 21px) !important; }
.p103-game-meta { font-size: clamp(9px, 1.9vh, 11px) !important; }

.p103-bottom {
  border-radius: 16px 16px max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-bottom)) !important;
}
.p103-bottom button { font-size: clamp(10px, 2vh, 14px) !important; }
.p103-bottom button i { font-size: clamp(19px, 4.8vh, 27px) !important; }
.p103-bottom .p103-spin { margin: clamp(4px, 1vh, 8px) !important; }
.p103-bottom .p103-spin strong { font-size: clamp(17px, 4.2vh, 25px) !important; }
.p103-bottom .p103-spin small { font-size: clamp(8px, 1.7vh, 12px) !important; }

#splash {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
#splash::before,
#splash::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
#splash::before {
  inset: -18%;
  background:
    conic-gradient(from 0deg, transparent, rgba(255, 60, 225, .28), transparent, rgba(255, 216, 92, .22), transparent);
  animation: p103LobbyAura 9s linear infinite;
}
#splash::after {
  inset: 0;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 218, 107, .18), transparent 22%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.36));
}
.p103-boot-loader { z-index: 2; width: min(460px, 78vw) !important; top: 46% !important; }
.p103-boot-percent {
  z-index: 2;
  position: absolute;
  left: 50%;
  top: calc(50% + 100px);
  transform: translateX(-50%);
  color: #ffe177;
  font-weight: 950;
  font-size: clamp(18px, 4vh, 26px);
  letter-spacing: .06em;
  text-shadow: 0 2px 0 #5b1800, 0 0 14px rgba(255, 60, 225, .72);
}
body.p103-purple-ready .progress-bar,
#splash .progress-bar {
  z-index: 2;
  left: 50% !important;
  top: calc(50% + 138px) !important;
  width: min(420px, 70vw) !important;
  height: clamp(8px, 1.8vh, 12px) !important;
  border-radius: 999px !important;
  overflow: hidden;
  transform: translateX(-50%);
}
#splash .progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width .22s ease;
}

body.p103-purple-ready #splash,
body.p103-game-loading #splash,
body.p103-booting #splash {
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 63, 231, .28), transparent 24%),
    radial-gradient(circle at 22% 12%, rgba(255, 210, 96, .22), transparent 20%),
    linear-gradient(180deg, #2a0038 0%, #16001f 58%, #050008 100%) !important;
}

body.p103-purple-ready #splash .p103-boot-loader,
body.p103-game-loading #splash .p103-boot-loader,
body.p103-booting #splash .p103-boot-loader {
  width: auto !important;
  min-width: 128px !important;
  max-width: 76vw !important;
  min-height: 44px !important;
  padding: 10px 24px !important;
  border: 1px solid rgba(255, 216, 104, .84) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(86, 0, 105, .98), rgba(31, 0, 45, .98)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 55, 219, .42),
    0 0 26px rgba(255, 45, 220, .78),
    inset 0 0 16px rgba(255, 203, 88, .16) !important;
}

body.p103-purple-ready #splash .p103-boot-logo,
body.p103-game-loading #splash .p103-boot-logo,
body.p103-booting #splash .p103-boot-logo,
body.p103-purple-ready #splash .p103-boot-loader strong,
body.p103-game-loading #splash .p103-boot-loader strong,
body.p103-booting #splash .p103-boot-loader strong {
  display: none !important;
}

body.p103-purple-ready #splash .p103-boot-loader span,
body.p103-game-loading #splash .p103-boot-loader span,
body.p103-booting #splash .p103-boot-loader span {
  color: #fff7c6 !important;
  font-size: clamp(13px, 3.2vh, 16px) !important;
  font-weight: 950 !important;
  text-shadow: 0 1px 0 #4a005d, 0 0 10px rgba(255, 67, 229, .86) !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

body.p103-purple-ready #splash .p103-boot-percent,
body.p103-game-loading #splash .p103-boot-percent,
body.p103-booting #splash .p103-boot-percent {
  top: calc(50% + 58px) !important;
  color: #f8dbff !important;
  font-size: clamp(13px, 3vh, 18px) !important;
  text-shadow: 0 0 12px rgba(255, 68, 226, .9) !important;
}

body.p103-purple-ready #splash .progress-bar,
body.p103-game-loading #splash .progress-bar,
body.p103-booting #splash .progress-bar {
  top: calc(50% + 88px) !important;
  width: min(430px, 72vw) !important;
  height: clamp(10px, 2.1vh, 14px) !important;
  border: 1px solid rgba(255, 225, 128, .72) !important;
  background: rgba(20, 0, 30, .92) !important;
  box-shadow:
    0 0 18px rgba(255, 55, 219, .52),
    inset 0 0 10px rgba(0, 0, 0, .72) !important;
}

body.p103-purple-ready #splash .progress-bar span,
body.p103-game-loading #splash .progress-bar span,
body.p103-booting #splash .progress-bar span {
  background:
    linear-gradient(90deg, #8b20ff 0%, #ff38e8 46%, #ff8cf2 72%, #fff0a6 100%) !important;
  box-shadow:
    0 0 18px rgba(255, 55, 219, .9),
    inset 0 1px 0 rgba(255, 255, 255, .54) !important;
}

.p103-orientation-tip {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  color: #fff4bc;
  background: radial-gradient(circle at 50% 28%, #4f006c, #100017 72%);
  text-align: center;
  font-weight: 900;
}
.p103-orientation-tip::before {
  content: "↻";
  display: block;
  margin: 0 auto 14px;
  width: 76px;
  height: 76px;
  border: 2px solid #ffd96b;
  border-radius: 50%;
  line-height: 72px;
  font-size: 48px;
  box-shadow: 0 0 22px rgba(255, 55, 219, .58);
}

@media (orientation: portrait) and (max-width: 900px) {
  .p103-orientation-tip { display: grid; }
  #p103PurpleLobby { filter: blur(3px); }
}

@media (max-height: 430px) {
  .p103-shell { grid-template-rows: 54px 34px minmax(0, 1fr) 58px !important; padding-top: max(5px, env(safe-area-inset-top)) !important; padding-bottom: max(5px, env(safe-area-inset-bottom)) !important; }
  .p103-side { display: none !important; }
  .p103-main { grid-template-columns: 1fr !important; }
  .p103-content { grid-template-rows: minmax(86px, .76fr) minmax(116px, 1fr) !important; }
  .p103-hero-copy p { display: none; }
  .p103-tools { grid-template-columns: repeat(5, minmax(36px, 1fr)) !important; gap: 3px !important; }
  .p103-wallet span, .p103-icon-btn span { font-size: 10px !important; }
}

@media (max-width: 740px) and (orientation: landscape) {
  .p103-topbar { grid-template-columns: minmax(140px, 1fr) minmax(120px, .8fr) minmax(92px, .62fr) minmax(190px, 1.25fr) !important; }
  .p103-wallet { padding: 0 9px !important; }
  .p103-tools { gap: 4px !important; }
  .p103-tab { min-width: 78px !important; }
  .p103-card-row { grid-auto-columns: 104px !important; }
}

@keyframes p103LobbyAura {
  to { transform: rotate(360deg); }
}


/* P103 fullscreen fix: override legacy 1280x720 scaled stage */
body.p103-lobby-visible #p103PurpleLobby {
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
  overflow: hidden !important;
}

#p103PurpleLobby .p103-shell,
.p103-shell {
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  flex: none !important;
  transform: none !important;
  transform-origin: center center !important;
  box-sizing: border-box !important;
}

@supports (width: 100dvw) {
  #p103PurpleLobby .p103-shell,
  .p103-shell {
    width: 100dvw !important;
    height: 100dvh !important;
  }
}

#p103PurpleLobby .p103-main {
  min-height: 0 !important;
}

#p103PurpleLobby .p103-content,
#p103PurpleLobby .p103-side,
#p103PurpleLobby .p103-card-row,
#p103PurpleLobby .p103-games-wrap {
  min-height: 0 !important;
}


/* P103 true mobile landscape layout: compact density for phone viewports */
@media (orientation: landscape) and (max-height: 560px),
       (orientation: landscape) and (max-width: 980px) {
  html,
  body {
    width: 100vw !important;
    height: 100vh !important;
    background: #08000f !important;
  }

  body {
    padding: 0 !important;
  }

  body.p103-lobby-visible #p103PurpleLobby {
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  #p103PurpleLobby .p103-shell,
  .p103-shell {
    width: 100vw !important;
    height: 100vh !important;
    padding:
      max(4px, env(safe-area-inset-top))
      max(7px, env(safe-area-inset-right))
      max(4px, env(safe-area-inset-bottom))
      max(7px, env(safe-area-inset-left)) !important;
    display: grid !important;
    grid-template-rows: 46px 30px minmax(0, 1fr) 52px !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    background:
      radial-gradient(circle at 20% 10%, rgba(255, 65, 220, .34), transparent 26%),
      radial-gradient(circle at 70% 120%, rgba(255, 208, 72, .18), transparent 30%),
      linear-gradient(180deg, #3a0051 0%, #18002b 58%, #08000f 100%) !important;
  }

  #p103PurpleLobby .p103-topbar,
  .p103-topbar {
    min-height: 0 !important;
    grid-template-columns: minmax(118px, .9fr) minmax(128px, .85fr) minmax(92px, .55fr) minmax(230px, 1.45fr) !important;
    gap: 5px !important;
    padding: 0 6px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 218, 100, .52) !important;
    background: linear-gradient(180deg, rgba(104, 10, 126, .92), rgba(38, 0, 58, .92)) !important;
  }

  #p103PurpleLobby .p103-profile,
  .p103-profile {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  #p103PurpleLobby .p103-avatar,
  .p103-avatar {
    width: 38px !important;
    height: 38px !important;
    border-width: 2px !important;
    font-size: 20px !important;
  }

  #p103PurpleLobby .p103-name strong,
  .p103-name strong {
    font-size: 11px !important;
    line-height: 1.05 !important;
  }

  #p103PurpleLobby .p103-name span,
  .p103-name span {
    min-width: 48px !important;
    height: 16px !important;
    margin-top: 3px !important;
    font-size: 9px !important;
  }

  #p103PurpleLobby .p103-exp,
  .p103-exp {
    display: none !important;
  }

  #p103PurpleLobby .p103-balance,
  .p103-balance {
    height: 36px !important;
    grid-template-columns: 28px minmax(0, 1fr) 30px !important;
    padding: 0 5px !important;
    border-width: 1px !important;
  }

  #p103PurpleLobby .p103-coin,
  .p103-coin {
    width: 25px !important;
    height: 25px !important;
    font-size: 13px !important;
  }

  #p103PurpleLobby .p103-balance strong,
  .p103-balance strong {
    font-size: 13px !important;
  }

  #p103PurpleLobby .p103-plus,
  .p103-plus {
    width: 28px !important;
    height: 28px !important;
    font-size: 21px !important;
    border-width: 1px !important;
  }

  #p103PurpleLobby .p103-wallet,
  .p103-wallet {
    height: 36px !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 3px !important;
    padding: 0 7px !important;
    border-width: 1px !important;
    border-radius: 10px !important;
  }

  #p103PurpleLobby .p103-wallet i,
  .p103-wallet i {
    font-size: 17px !important;
  }

  #p103PurpleLobby .p103-wallet span,
  .p103-wallet span {
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  #p103PurpleLobby .p103-tools,
  .p103-tools {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(34px, 1fr)) !important;
    gap: 3px !important;
  }

  #p103PurpleLobby .p103-icon-btn,
  .p103-icon-btn {
    height: 36px !important;
    min-width: 0 !important;
    padding: 0 2px !important;
    border-radius: 9px !important;
    font-size: 8px !important;
  }

  #p103PurpleLobby .p103-icon-btn i,
  .p103-icon-btn i {
    font-size: 17px !important;
    line-height: 1 !important;
  }

  #p103PurpleLobby .p103-tabs,
  .p103-tabs {
    height: 30px !important;
    min-height: 0 !important;
    grid-auto-columns: minmax(82px, max-content) !important;
    gap: 5px !important;
    overflow-x: auto !important;
    padding: 0 2px 1px !important;
  }

  #p103PurpleLobby .p103-tab,
  .p103-tab {
    height: 27px !important;
    min-width: 82px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    border-width: 1px !important;
  }

  #p103PurpleLobby .p103-main,
  .p103-main {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  #p103PurpleLobby .p103-side,
  .p103-side {
    display: none !important;
  }

  #p103PurpleLobby .p103-content,
  .p103-content {
    min-height: 0 !important;
    height: 100% !important;
    grid-template-rows: minmax(82px, 38%) minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  #p103PurpleLobby .p103-hero,
  .p103-hero {
    min-height: 0 !important;
    border-width: 1px !important;
    border-radius: 12px !important;
  }

  #p103PurpleLobby .p103-hero-copy,
  .p103-hero-copy {
    left: 18px !important;
    top: 50% !important;
    max-width: 48% !important;
    transform: translateY(-50%) !important;
  }

  #p103PurpleLobby .p103-hero-copy h1,
  .p103-hero-copy h1 {
    margin: 0 0 5px !important;
    font-size: clamp(18px, 5.4vh, 24px) !important;
    line-height: .98 !important;
  }

  #p103PurpleLobby .p103-hero-copy p,
  .p103-hero-copy p {
    display: none !important;
  }

  #p103PurpleLobby .p103-actions,
  .p103-actions {
    gap: 6px !important;
  }

  #p103PurpleLobby .p103-primary,
  #p103PurpleLobby .p103-secondary,
  .p103-primary,
  .p103-secondary {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    border-width: 1px !important;
  }

  #p103PurpleLobby .p103-secondary,
  .p103-secondary {
    display: none !important;
  }

  #p103PurpleLobby .p103-hero-lady,
  .p103-hero-lady {
    right: 28px !important;
    bottom: -8px !important;
    width: min(132px, 28vw) !important;
    height: 112% !important;
  }

  #p103PurpleLobby .p103-dots,
  .p103-dots {
    bottom: 5px !important;
    gap: 5px !important;
  }

  #p103PurpleLobby .p103-dots i,
  .p103-dots i {
    width: 6px !important;
    height: 6px !important;
  }

  #p103PurpleLobby .p103-dots i.active,
  .p103-dots i.active {
    width: 18px !important;
  }

  #p103PurpleLobby .p103-games-wrap,
  .p103-games-wrap {
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #p103PurpleLobby .p103-card-row,
  .p103-card-row {
    height: 100% !important;
    min-height: 0 !important;
    grid-auto-columns: clamp(108px, 15.2vw, 142px) !important;
    gap: 7px !important;
    padding: 0 2px 2px !important;
    overflow-x: auto !important;
    touch-action: pan-x !important;
  }

  #p103PurpleLobby .p103-game-card,
  .p103-game-card {
    min-width: clamp(108px, 15.2vw, 142px) !important;
    min-height: 0 !important;
    border-width: 1px !important;
    border-radius: 10px !important;
    box-shadow: 0 0 9px rgba(255, 49, 219, .32), inset 0 -48px 34px rgba(24, 0, 27, .76) !important;
  }

  #p103PurpleLobby .p103-game-card::before,
  .p103-game-card::before {
    inset: 5px 5px 36px !important;
    border-radius: 8px !important;
  }

  #p103PurpleLobby .p103-badge,
  .p103-badge {
    top: 5px !important;
    left: 5px !important;
    min-width: 34px !important;
    padding: 2px 5px !important;
    font-size: 8px !important;
  }

  #p103PurpleLobby .p103-game-mark,
  .p103-game-mark {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
    border-width: 1px !important;
  }

  #p103PurpleLobby .p103-game-title,
  .p103-game-title {
    left: 6px !important;
    right: 6px !important;
    bottom: 19px !important;
    font-size: 13px !important;
    line-height: 1.05 !important;
  }

  #p103PurpleLobby .p103-game-meta,
  .p103-game-meta {
    left: 6px !important;
    right: 6px !important;
    bottom: 5px !important;
    gap: 4px !important;
    font-size: 8px !important;
  }

  #p103PurpleLobby .p103-game-nav,
  .p103-game-nav {
    width: 28px !important;
    height: 54px !important;
    border-width: 1px !important;
    font-size: 18px !important;
  }

  #p103PurpleLobby .p103-game-nav-prev,
  .p103-game-nav-prev {
    left: 0 !important;
  }

  #p103PurpleLobby .p103-game-nav-next,
  .p103-game-nav-next {
    right: 0 !important;
  }

  #p103PurpleLobby .p103-bottom,
  .p103-bottom {
    height: 52px !important;
    min-height: 0 !important;
    grid-template-columns: repeat(4, 1fr) minmax(118px, 1.45fr) repeat(3, 1fr) !important;
    border-width: 1px !important;
    border-radius: 13px !important;
    overflow: hidden !important;
  }

  #p103PurpleLobby .p103-bottom button,
  .p103-bottom button {
    min-width: 0 !important;
    gap: 1px !important;
    padding: 0 2px !important;
    font-size: 8px !important;
    line-height: 1 !important;
  }

  #p103PurpleLobby .p103-bottom button i,
  .p103-bottom button i {
    font-size: 17px !important;
  }

  #p103PurpleLobby .p103-bottom .p103-spin,
  .p103-bottom .p103-spin {
    margin: 4px 5px !important;
    border-width: 1px !important;
    border-radius: 13px !important;
  }

  #p103PurpleLobby .p103-bottom .p103-spin strong,
  .p103-bottom .p103-spin strong {
    font-size: 14px !important;
    line-height: 1 !important;
  }

  #p103PurpleLobby .p103-bottom .p103-spin small,
  .p103-bottom .p103-spin small {
    font-size: 7px !important;
    line-height: 1 !important;
  }

  #p103Toast,
  .p103-toast {
    bottom: calc(60px + env(safe-area-inset-bottom)) !important;
    max-width: calc(100vw - 28px) !important;
    font-size: 12px !important;
  }
}

@media (orientation: landscape) and (max-height: 390px) {
  #p103PurpleLobby .p103-shell,
  .p103-shell {
    grid-template-rows: 40px 26px minmax(0, 1fr) 46px !important;
    gap: 3px !important;
    padding: 3px 6px !important;
  }

  #p103PurpleLobby .p103-topbar,
  .p103-topbar {
    grid-template-columns: minmax(100px, .8fr) minmax(116px, .8fr) minmax(78px, .48fr) minmax(188px, 1.35fr) !important;
  }

  #p103PurpleLobby .p103-avatar,
  .p103-avatar {
    width: 32px !important;
    height: 32px !important;
  }

  #p103PurpleLobby .p103-balance,
  #p103PurpleLobby .p103-wallet,
  #p103PurpleLobby .p103-icon-btn,
  .p103-balance,
  .p103-wallet,
  .p103-icon-btn {
    height: 31px !important;
  }

  #p103PurpleLobby .p103-tabs,
  .p103-tabs {
    height: 26px !important;
  }

  #p103PurpleLobby .p103-tab,
  .p103-tab {
    height: 23px !important;
    min-width: 72px !important;
    font-size: 9px !important;
  }

  #p103PurpleLobby .p103-content,
  .p103-content {
    grid-template-rows: minmax(66px, 34%) minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  #p103PurpleLobby .p103-hero-copy h1,
  .p103-hero-copy h1 {
    font-size: 16px !important;
  }

  #p103PurpleLobby .p103-primary,
  .p103-primary {
    height: 26px !important;
    min-height: 26px !important;
    font-size: 11px !important;
  }

  #p103PurpleLobby .p103-card-row,
  .p103-card-row {
    grid-auto-columns: clamp(96px, 14.5vw, 122px) !important;
    gap: 6px !important;
  }

  #p103PurpleLobby .p103-game-card,
  .p103-game-card {
    min-width: clamp(96px, 14.5vw, 122px) !important;
  }

  #p103PurpleLobby .p103-bottom,
  .p103-bottom {
    height: 46px !important;
  }
}

/* P103 direct purple lobby: no boot loader, hide legacy lobby behind shell */
body.p103-lobby-visible #splash,
body.p103-purple-ready #splash {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.p103-lobby-visible #GameCanvas,
body.p103-lobby-visible #Cocos2dGameContainer {
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  left: -99999px !important;
  top: -99999px !important;
  width: 1px !important;
  height: 1px !important;
}

body.p103-game-visible #GameCanvas,
body.p103-game-visible #Cocos2dGameContainer {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: fixed !important;
  width: var(--p103-game-w, var(--p103-vw, 100vw)) !important;
  height: var(--p103-game-h, var(--p103-vh, 100vh)) !important;
}

/* P103 game canvas input fix */
body.p103-game-visible #p103PurpleLobby {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.p103-game-visible #GameCanvas,
body.p103-game-visible #Cocos2dGameContainer {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--p103-game-w, var(--p103-vw, 100vw)) !important;
  height: var(--p103-game-h, var(--p103-vh, 100vh)) !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 20 !important;
  touch-action: none !important;
  transform: var(--p103-game-transform, none) !important;
  transform-origin: top left !important;
}

body.p103-game-visible canvas#GameCanvas {
  cursor: pointer !important;
}

/* P103 boot gate visible until whole site is cached */
body.p103-booting #splash {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 200 !important;
}

body.p103-booting #p103PurpleLobby {
  display: none !important;
}

body.p103-booting #GameCanvas,
body.p103-booting #Cocos2dGameContainer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.p103-lobby-visible:not(.p103-booting) #splash,
body.p103-purple-ready:not(.p103-booting) #splash.p103-splash-out {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* P103 per-game loading overlay */
body.p103-game-loading #splash {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 220 !important;
}

body.p103-game-loading #p103PurpleLobby {
  display: none !important;
  pointer-events: none !important;
}

body.p103-game-loading #GameCanvas,
body.p103-game-loading #Cocos2dGameContainer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* P103 smooth lobby return override */
body.p103-lobby-visible #GameCanvas,
body.p103-lobby-visible #Cocos2dGameContainer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.p103-lobby-visible #p103PurpleLobby {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 120 !important;
}

/* P103 final Android/iOS landscape fit: fill screen without 1280 stage squeeze */
html,
body {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #07000e !important;
}

body.p103-lobby-visible {
  padding: 0 !important;
}

body.p103-lobby-visible #p103PurpleLobby {
  position: fixed !important;
  inset: 0 !important;
  width: var(--p103-vw, 100vw) !important;
  height: var(--p103-vh, 100vh) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}

@supports (width: 100dvw) {
  body.p103-lobby-visible #p103PurpleLobby {
    width: 100dvw !important;
    height: 100dvh !important;
  }
}

body.p103-lobby-visible #p103PurpleLobby .p103-shell,
body.p103-lobby-visible .p103-shell {
  position: relative !important;
  width: var(--p103-vw, 100vw) !important;
  height: var(--p103-vh, 100vh) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  flex: none !important;
  transform: none !important;
  transform-origin: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding:
    max(4px, env(safe-area-inset-top))
    max(6px, env(safe-area-inset-right))
    max(4px, env(safe-area-inset-bottom))
    max(6px, env(safe-area-inset-left)) !important;
  grid-template-rows: clamp(38px, 12.5vh, 54px) clamp(26px, 7.5vh, 36px) minmax(0, 1fr) clamp(44px, 13.5vh, 60px) !important;
  gap: clamp(3px, 1vh, 6px) !important;
}

@supports (width: 100dvw) {
  body.p103-lobby-visible #p103PurpleLobby .p103-shell,
  body.p103-lobby-visible .p103-shell {
    width: 100dvw !important;
    height: 100dvh !important;
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  body.p103-lobby-visible #p103PurpleLobby .p103-topbar,
  body.p103-lobby-visible .p103-topbar {
    min-height: 0 !important;
    grid-template-columns: minmax(104px, .82fr) minmax(116px, .82fr) minmax(82px, .52fr) minmax(190px, 1.38fr) !important;
    gap: 4px !important;
    padding: 0 5px !important;
    border-radius: 10px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-profile,
  body.p103-lobby-visible .p103-profile {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 4px !important;
    min-height: 0 !important;
    padding: 2px 6px 2px 3px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-avatar,
  body.p103-lobby-visible .p103-avatar {
    width: 32px !important;
    height: 32px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-name strong,
  body.p103-lobby-visible .p103-name strong,
  body.p103-lobby-visible #p103PurpleLobby .p103-balance strong,
  body.p103-lobby-visible .p103-balance strong {
    font-size: clamp(10px, 3.2vh, 14px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-name span,
  body.p103-lobby-visible .p103-name span,
  body.p103-lobby-visible #p103PurpleLobby .p103-exp,
  body.p103-lobby-visible .p103-exp {
    display: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-balance,
  body.p103-lobby-visible #p103PurpleLobby .p103-wallet,
  body.p103-lobby-visible #p103PurpleLobby .p103-icon-btn,
  body.p103-lobby-visible .p103-balance,
  body.p103-lobby-visible .p103-wallet,
  body.p103-lobby-visible .p103-icon-btn {
    height: clamp(30px, 9.5vh, 39px) !important;
    min-height: 0 !important;
    border-width: 1px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-tools,
  body.p103-lobby-visible .p103-tools {
    grid-template-columns: repeat(5, minmax(30px, 1fr)) !important;
    gap: 3px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-icon-btn span,
  body.p103-lobby-visible .p103-icon-btn span,
  body.p103-lobby-visible #p103PurpleLobby .p103-wallet span,
  body.p103-lobby-visible .p103-wallet span {
    font-size: clamp(7px, 2.2vh, 10px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-tabs,
  body.p103-lobby-visible .p103-tabs {
    height: auto !important;
    min-height: 0 !important;
    grid-auto-columns: minmax(clamp(68px, 11vw, 94px), max-content) !important;
    gap: 4px !important;
    padding: 0 1px !important;
    overflow-x: auto !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-tab,
  body.p103-lobby-visible .p103-tab {
    height: clamp(22px, 6.4vh, 30px) !important;
    min-width: clamp(68px, 11vw, 94px) !important;
    padding: 0 7px !important;
    font-size: clamp(9px, 2.6vh, 12px) !important;
    border-width: 1px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-main,
  body.p103-lobby-visible .p103-main {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-side,
  body.p103-lobby-visible .p103-side {
    display: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-content,
  body.p103-lobby-visible .p103-content {
    min-height: 0 !important;
    height: 100% !important;
    grid-template-rows: minmax(62px, 36%) minmax(0, 1fr) !important;
    gap: clamp(3px, 1vh, 6px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-hero,
  body.p103-lobby-visible .p103-hero {
    min-height: 0 !important;
    border-radius: 10px !important;
    border-width: 1px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-hero-copy,
  body.p103-lobby-visible .p103-hero-copy {
    left: clamp(12px, 3vw, 24px) !important;
    max-width: 52% !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-hero-copy h1,
  body.p103-lobby-visible .p103-hero-copy h1 {
    font-size: clamp(15px, 5vh, 24px) !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-hero-copy p,
  body.p103-lobby-visible .p103-hero-copy p {
    display: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-primary,
  body.p103-lobby-visible .p103-primary,
  body.p103-lobby-visible #p103PurpleLobby .p103-secondary,
  body.p103-lobby-visible .p103-secondary {
    min-height: clamp(24px, 6.8vh, 32px) !important;
    height: clamp(24px, 6.8vh, 32px) !important;
    padding: 0 14px !important;
    font-size: clamp(10px, 2.8vh, 13px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-games-wrap,
  body.p103-lobby-visible .p103-games-wrap,
  body.p103-lobby-visible #p103PurpleLobby .p103-card-row,
  body.p103-lobby-visible .p103-card-row {
    min-height: 0 !important;
    height: 100% !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-card-row,
  body.p103-lobby-visible .p103-card-row {
    grid-auto-columns: clamp(88px, 14.3vw, 132px) !important;
    gap: clamp(5px, 1vw, 9px) !important;
    padding: 0 2px 2px !important;
    overflow-x: auto !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-game-card,
  body.p103-lobby-visible .p103-game-card {
    min-width: clamp(88px, 14.3vw, 132px) !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 9px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-game-card::before,
  body.p103-lobby-visible .p103-game-card::before {
    inset: 5px 5px 32px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-game-title,
  body.p103-lobby-visible .p103-game-title {
    bottom: 17px !important;
    font-size: clamp(10px, 3.2vh, 14px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom,
  body.p103-lobby-visible .p103-bottom {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-columns: repeat(4, 1fr) minmax(105px, 1.45fr) repeat(3, 1fr) !important;
    border-radius: 10px !important;
    border-width: 1px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom button,
  body.p103-lobby-visible .p103-bottom button {
    min-width: 0 !important;
    padding: 0 1px !important;
    gap: 1px !important;
    font-size: clamp(7px, 2.2vh, 10px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom button i,
  body.p103-lobby-visible .p103-bottom button i {
    font-size: clamp(15px, 4.6vh, 21px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom .p103-spin,
  body.p103-lobby-visible .p103-bottom .p103-spin {
    margin: 3px 4px !important;
    border-radius: 10px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom .p103-spin strong,
  body.p103-lobby-visible .p103-bottom .p103-spin strong {
    font-size: clamp(12px, 3.8vh, 18px) !important;
  }
}

/* P103 portrait phone fallback: render lobby as landscape by rotating the shell */
body.p103-force-landscape {
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #07000e !important;
}

body.p103-force-landscape #p103PurpleLobby {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vh !important;
  height: 100vw !important;
  transform: translateY(100vh) rotate(-90deg) !important;
  transform-origin: top left !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-shell,
body.p103-force-landscape .p103-shell {
  width: 100vh !important;
  height: 100vw !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  transform: none !important;
  margin: 0 !important;
  padding:
    max(4px, env(safe-area-inset-left))
    max(6px, env(safe-area-inset-top))
    max(4px, env(safe-area-inset-right))
    max(6px, env(safe-area-inset-bottom)) !important;
  grid-template-rows: clamp(38px, 12.5vw, 54px) clamp(26px, 7.5vw, 36px) minmax(0, 1fr) clamp(44px, 13.5vw, 60px) !important;
}

body.p103-force-landscape .p103-orientation-tip {
  display: none !important;
}

@media (orientation: portrait) and (max-width: 900px) {
  body.p103-force-landscape #p103PurpleLobby {
    filter: none !important;
  }

  body:not(.p103-force-landscape) .p103-orientation-tip {
    display: grid !important;
  }
}

/* P103 enterprise mobile detail pass: balanced forced-landscape layout */
body.p103-force-landscape {
  --p103-stage-w: var(--p103-landscape-w, 100vh);
  --p103-stage-h: var(--p103-landscape-h, 100vw);
  --p103-pad-x: clamp(8px, 2.4vw, 16px);
  --p103-pad-y: clamp(6px, 1.8vw, 12px);
  --p103-gap: clamp(5px, 1.25vw, 9px);
}

body.p103-force-landscape #p103PurpleLobby {
  left: 0 !important;
  top: 0 !important;
  width: var(--p103-stage-w) !important;
  height: var(--p103-stage-h) !important;
  transform: translateY(var(--p103-screen-h, 100vh)) rotate(-90deg) !important;
  transform-origin: top left !important;
  overflow: hidden !important;
  background: radial-gradient(circle at 18% 10%, rgba(255, 80, 226, .24), transparent 26%), linear-gradient(180deg, #33004e, #120021 68%, #07000e) !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-shell,
body.p103-force-landscape .p103-shell {
  width: var(--p103-stage-w) !important;
  height: var(--p103-stage-h) !important;
  padding: var(--p103-pad-y) var(--p103-pad-x) !important;
  grid-template-rows: clamp(42px, 12.2vw, 56px) clamp(28px, 7.2vw, 36px) minmax(0, 1fr) clamp(48px, 12.8vw, 60px) !important;
  gap: var(--p103-gap) !important;
  box-shadow: none !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-topbar,
body.p103-force-landscape .p103-topbar {
  grid-template-columns: minmax(120px, .95fr) minmax(132px, .9fr) minmax(86px, .56fr) minmax(190px, 1.42fr) !important;
  gap: clamp(5px, 1.1vw, 8px) !important;
  padding: 3px 7px !important;
  border-radius: 13px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-profile,
body.p103-force-landscape .p103-profile {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 5px !important;
  padding: 2px 7px 2px 4px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-avatar,
body.p103-force-landscape .p103-avatar {
  width: 32px !important;
  height: 32px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-name strong,
body.p103-force-landscape .p103-name strong {
  font-size: clamp(11px, 3.2vw, 14px) !important;
  line-height: 1.05 !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-balance,
body.p103-force-landscape #p103PurpleLobby .p103-wallet,
body.p103-force-landscape #p103PurpleLobby .p103-icon-btn,
body.p103-force-landscape .p103-balance,
body.p103-force-landscape .p103-wallet,
body.p103-force-landscape .p103-icon-btn {
  height: clamp(32px, 9.2vw, 40px) !important;
  min-height: 0 !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-balance,
body.p103-force-landscape .p103-balance {
  grid-template-columns: 26px minmax(0, 1fr) 26px !important;
  padding: 0 5px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-balance strong,
body.p103-force-landscape .p103-balance strong {
  font-size: clamp(12px, 3.4vw, 15px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-wallet,
body.p103-force-landscape .p103-wallet {
  grid-template-columns: 22px minmax(0, 1fr) !important;
  padding: 0 7px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-tools,
body.p103-force-landscape .p103-tools {
  gap: 4px !important;
  grid-template-columns: repeat(5, minmax(34px, 1fr)) !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-icon-btn,
body.p103-force-landscape .p103-icon-btn {
  padding: 0 3px !important;
  border-radius: 10px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-wallet span,
body.p103-force-landscape #p103PurpleLobby .p103-icon-btn span,
body.p103-force-landscape .p103-wallet span,
body.p103-force-landscape .p103-icon-btn span {
  font-size: clamp(8px, 2.25vw, 10px) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-tabs,
body.p103-force-landscape .p103-tabs {
  grid-auto-columns: minmax(clamp(72px, 16vw, 96px), max-content) !important;
  gap: 5px !important;
  padding: 0 2px !important;
  overflow-x: auto !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-tab,
body.p103-force-landscape .p103-tab {
  height: clamp(24px, 6.6vw, 31px) !important;
  min-width: clamp(72px, 16vw, 96px) !important;
  padding: 0 8px !important;
  font-size: clamp(10px, 2.55vw, 12px) !important;
  gap: 4px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-main,
body.p103-force-landscape .p103-main {
  grid-template-columns: 1fr !important;
  min-height: 0 !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-side,
body.p103-force-landscape .p103-side {
  display: none !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-content,
body.p103-force-landscape .p103-content {
  height: 100% !important;
  min-height: 0 !important;
  grid-template-rows: minmax(82px, 40%) minmax(0, 1fr) !important;
  gap: var(--p103-gap) !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-hero,
body.p103-force-landscape .p103-hero {
  border-radius: 13px !important;
  min-height: 0 !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-hero-copy,
body.p103-force-landscape .p103-hero-copy {
  left: clamp(16px, 3.6vw, 28px) !important;
  max-width: 55% !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-hero-copy h1,
body.p103-force-landscape .p103-hero-copy h1 {
  font-size: clamp(18px, 5.2vw, 27px) !important;
  line-height: 1.02 !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-primary,
body.p103-force-landscape .p103-primary {
  height: clamp(28px, 7vw, 34px) !important;
  min-height: 0 !important;
  padding: 0 18px !important;
  font-size: clamp(11px, 2.8vw, 14px) !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-games-wrap,
body.p103-force-landscape .p103-games-wrap {
  height: 100% !important;
  min-height: 0 !important;
  padding: 4px 28px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-card-row,
body.p103-force-landscape .p103-card-row {
  height: 100% !important;
  min-height: 0 !important;
  grid-auto-columns: clamp(92px, 18.6vw, 132px) !important;
  gap: clamp(7px, 1.6vw, 11px) !important;
  padding: 0 2px 3px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-game-card,
body.p103-force-landscape .p103-game-card {
  min-width: clamp(92px, 18.6vw, 132px) !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 11px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-game-title,
body.p103-force-landscape .p103-game-title {
  left: 6px !important;
  right: 6px !important;
  bottom: 18px !important;
  font-size: clamp(11px, 3vw, 14px) !important;
  line-height: 1.06 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-game-meta,
body.p103-force-landscape .p103-game-meta {
  font-size: clamp(8px, 2vw, 10px) !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-bottom,
body.p103-force-landscape .p103-bottom {
  height: 100% !important;
  min-height: 0 !important;
  grid-template-columns: repeat(4, minmax(42px, 1fr)) minmax(128px, 1.55fr) repeat(3, minmax(42px, 1fr)) !important;
  border-radius: 13px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-bottom button,
body.p103-force-landscape .p103-bottom button {
  min-width: 0 !important;
  padding: 0 3px !important;
  gap: 2px !important;
  font-size: clamp(8px, 2.2vw, 10px) !important;
  line-height: 1.05 !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-bottom button i,
body.p103-force-landscape .p103-bottom button i {
  font-size: clamp(17px, 4.8vw, 22px) !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-bottom .p103-spin,
body.p103-force-landscape .p103-bottom .p103-spin {
  margin: 4px 6px !important;
  border-radius: 13px !important;
}

body.p103-force-landscape #p103PurpleLobby .p103-bottom .p103-spin strong,
body.p103-force-landscape .p103-bottom .p103-spin strong {
  font-size: clamp(14px, 4vw, 19px) !important;
  white-space: nowrap !important;
}

@media (max-width: 430px) and (orientation: portrait) {
  body.p103-force-landscape #p103PurpleLobby .p103-shell,
  body.p103-force-landscape .p103-shell {
    grid-template-rows: 44px 28px minmax(0, 1fr) 50px !important;
    padding: 7px 10px !important;
  }

  body.p103-force-landscape #p103PurpleLobby .p103-content,
  body.p103-force-landscape .p103-content {
    grid-template-rows: minmax(88px, 42%) minmax(0, 1fr) !important;
  }

  body.p103-force-landscape #p103PurpleLobby .p103-card-row,
  body.p103-force-landscape .p103-card-row {
    grid-auto-columns: 104px !important;
  }
}

/* P103 no-user-rotation mode: force visual landscape even while browser stays portrait */
html.p103-force-landscape,
body.p103-force-landscape {
  width: var(--p103-screen-w, 100vw) !important;
  height: var(--p103-screen-h, 100vh) !important;
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  padding: 0 !important;
}

html.p103-force-landscape #splash,
body.p103-force-landscape #splash,
html.p103-force-landscape #p103PurpleLobby,
body.p103-force-landscape #p103PurpleLobby {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: var(--p103-landscape-w, 100vh) !important;
  height: var(--p103-landscape-h, 100vw) !important;
  max-width: none !important;
  max-height: none !important;
  transform: translate3d(0, var(--p103-screen-h, 100vh), 0) rotate(-90deg) !important;
  transform-origin: top left !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
}

html.p103-force-landscape #p103PurpleLobby .p103-shell,
body.p103-force-landscape #p103PurpleLobby .p103-shell,
html.p103-force-landscape .p103-shell,
body.p103-force-landscape .p103-shell {
  width: var(--p103-landscape-w, 100vh) !important;
  height: var(--p103-landscape-h, 100vw) !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  transform: none !important;
}

html.p103-force-landscape .p103-orientation-tip,
body.p103-force-landscape .p103-orientation-tip {
  display: none !important;
}

@media (orientation: portrait) and (max-width: 900px) {
  html.p103-force-landscape #p103PurpleLobby,
  body.p103-force-landscape #p103PurpleLobby {
    filter: none !important;
  }
}

/* P103 game scene viewport fit: prevent bottom controls from being clipped */
body.p103-game-visible #GameCanvas,
body.p103-game-visible #Cocos2dGameContainer {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: var(--p103-game-w, var(--p103-vw, 100vw)) !important;
  height: var(--p103-game-h, var(--p103-vh, 100vh)) !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  z-index: 20 !important;
  overflow: hidden !important;
  touch-action: none !important;
  transform-origin: top left !important;
  transform: var(--p103-game-transform, none) !important;
}

html.p103-force-landscape body.p103-game-visible #GameCanvas,
html.p103-force-landscape body.p103-game-visible #Cocos2dGameContainer,
body.p103-force-landscape.p103-game-visible #GameCanvas,
body.p103-force-landscape.p103-game-visible #Cocos2dGameContainer {
  width: var(--p103-landscape-w, 100vh) !important;
  height: var(--p103-landscape-h, 100vw) !important;
  transform: var(--p103-game-transform, translate3d(0, var(--p103-screen-h, 100vh), 0) rotate(-90deg)) !important;
}

/* P103 game viewport final override: keep in-game controls inside the real visual viewport. */
body.p103-game-visible {
  position: fixed !important;
  inset: 0 !important;
  width: var(--p103-screen-w, 100vw) !important;
  height: var(--p103-screen-h, 100vh) !important;
  overflow: hidden !important;
  background: #000 !important;
}

body.p103-game-visible #Cocos2dGameContainer,
body.p103-game-visible #GameCanvas {
  box-sizing: border-box !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--p103-game-w, var(--p103-vw, 100vw)) !important;
  height: var(--p103-game-h, var(--p103-vh, 100vh)) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: var(--p103-game-transform, none) !important;
  transform-origin: top left !important;
}

body.p103-game-loading #splash,
body.p103-purple-ready.p103-game-loading #splash,
body.p103-booting #splash {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 260 !important;
}

body.p103-game-loading #p103PurpleLobby,
body.p103-booting #p103PurpleLobby {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.p103-game-loading #GameCanvas,
body.p103-game-loading #Cocos2dGameContainer,
body.p103-game-loading.p103-game-visible #GameCanvas,
body.p103-game-loading.p103-game-visible #Cocos2dGameContainer {
  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  left: -99999px !important;
  top: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  transform: none !important;
}

/* P103 mobile lobby final fit: authoritative compact landscape layout. */
@media (max-width: 980px), (max-height: 540px), (pointer: coarse) {
  html,
  body {
    overscroll-behavior: none !important;
    -webkit-text-size-adjust: 100% !important;
  }

  body.p103-lobby-visible #p103PurpleLobby,
  body.p103-force-landscape #p103PurpleLobby {
    background:
      radial-gradient(circle at 15% 8%, rgba(255, 111, 244, .36), transparent 24%),
      radial-gradient(circle at 82% 18%, rgba(122, 57, 255, .42), transparent 28%),
      linear-gradient(145deg, #160424 0%, #2a0744 46%, #090011 100%) !important;
    overflow: hidden !important;
    touch-action: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-shell,
  body.p103-force-landscape #p103PurpleLobby .p103-shell {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: clamp(42px, 10.8vh, 58px) clamp(30px, 7.6vh, 42px) minmax(0, 1fr) clamp(50px, 12.5vh, 66px) !important;
    gap: clamp(5px, 1.35vh, 9px) !important;
    padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-topbar,
  body.p103-force-landscape #p103PurpleLobby .p103-topbar {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(132px, 1.15fr) minmax(128px, .9fr) auto !important;
    align-items: center !important;
    gap: clamp(6px, 1.5vw, 12px) !important;
    padding: 0 clamp(8px, 1.7vw, 14px) !important;
    border-radius: 13px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-profile,
  body.p103-force-landscape #p103PurpleLobby .p103-profile {
    min-width: 0 !important;
    gap: 7px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-avatar,
  body.p103-force-landscape #p103PurpleLobby .p103-avatar {
    width: clamp(30px, 7.8vh, 40px) !important;
    height: clamp(30px, 7.8vh, 40px) !important;
    flex: 0 0 auto !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-name,
  body.p103-force-landscape #p103PurpleLobby .p103-name,
  body.p103-lobby-visible #p103PurpleLobby .p103-name strong,
  body.p103-force-landscape #p103PurpleLobby .p103-name strong {
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-balance,
  body.p103-force-landscape #p103PurpleLobby .p103-balance {
    height: clamp(32px, 7.9vh, 42px) !important;
    min-width: 0 !important;
    padding: 0 6px !important;
    gap: 5px !important;
    border-radius: 999px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-balance strong,
  body.p103-force-landscape #p103PurpleLobby .p103-balance strong {
    font-size: clamp(12px, 3.2vh, 17px) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-wallet,
  body.p103-force-landscape #p103PurpleLobby .p103-wallet {
    display: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-tools,
  body.p103-force-landscape #p103PurpleLobby .p103-tools {
    min-width: 0 !important;
    justify-content: flex-end !important;
    gap: clamp(4px, 1vw, 8px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-icon-btn,
  body.p103-force-landscape #p103PurpleLobby .p103-icon-btn {
    width: clamp(32px, 8.2vh, 42px) !important;
    height: clamp(32px, 8.2vh, 42px) !important;
    padding: 0 !important;
    border-radius: 11px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-icon-btn span,
  body.p103-force-landscape #p103PurpleLobby .p103-icon-btn span {
    display: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-tabs,
  body.p103-force-landscape #p103PurpleLobby .p103-tabs {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    gap: clamp(5px, 1.3vw, 9px) !important;
    padding: 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-tabs::-webkit-scrollbar,
  body.p103-force-landscape #p103PurpleLobby .p103-tabs::-webkit-scrollbar {
    display: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-tab,
  body.p103-force-landscape #p103PurpleLobby .p103-tab {
    flex: 0 0 auto !important;
    min-width: clamp(76px, 13vw, 112px) !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 clamp(7px, 1.5vw, 12px) !important;
    gap: 5px !important;
    border-radius: 12px !important;
    font-size: clamp(10px, 2.45vh, 13px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-main,
  body.p103-force-landscape #p103PurpleLobby .p103-main {
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 21vw) !important;
    gap: clamp(8px, 1.6vw, 14px) !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-content,
  body.p103-force-landscape #p103PurpleLobby .p103-content {
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    grid-template-rows: minmax(74px, 38%) minmax(0, 1fr) !important;
    gap: clamp(6px, 1.35vh, 10px) !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-hero,
  body.p103-force-landscape #p103PurpleLobby .p103-hero {
    min-height: 0 !important;
    height: 100% !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-hero-copy,
  body.p103-force-landscape #p103PurpleLobby .p103-hero-copy {
    left: clamp(16px, 3.2vw, 30px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    max-width: min(56%, 370px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-hero-copy h1,
  body.p103-force-landscape #p103PurpleLobby .p103-hero-copy h1 {
    font-size: clamp(18px, 6.2vh, 34px) !important;
    line-height: 1.02 !important;
    margin: 0 0 4px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-hero-copy p,
  body.p103-force-landscape #p103PurpleLobby .p103-hero-copy p {
    font-size: clamp(10px, 2.45vh, 13px) !important;
    line-height: 1.25 !important;
    margin: 0 0 7px !important;
    max-height: 34px !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-primary,
  body.p103-force-landscape #p103PurpleLobby .p103-primary {
    height: clamp(28px, 7vh, 36px) !important;
    min-height: 0 !important;
    padding: 0 clamp(14px, 3vw, 24px) !important;
    font-size: clamp(11px, 2.8vh, 14px) !important;
    border-radius: 999px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-games-wrap,
  body.p103-force-landscape #p103PurpleLobby .p103-games-wrap {
    height: 100% !important;
    min-height: 0 !important;
    padding: 3px clamp(22px, 4vw, 36px) 4px !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-card-row,
  body.p103-force-landscape #p103PurpleLobby .p103-card-row {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: clamp(96px, 17.6vw, 148px) !important;
    gap: clamp(7px, 1.35vw, 12px) !important;
    align-items: stretch !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    scrollbar-width: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-card-row::-webkit-scrollbar,
  body.p103-force-landscape #p103PurpleLobby .p103-card-row::-webkit-scrollbar {
    display: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-game-card,
  body.p103-force-landscape #p103PurpleLobby .p103-game-card {
    height: 100% !important;
    min-height: 0 !important;
    min-width: 0 !important;
    border-radius: 12px !important;
    scroll-snap-align: start !important;
    box-shadow: 0 10px 20px rgba(9, 0, 20, .36), inset 0 0 0 1px rgba(255, 255, 255, .12) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-game-title,
  body.p103-force-landscape #p103PurpleLobby .p103-game-title {
    left: 7px !important;
    right: 7px !important;
    bottom: clamp(18px, 4.7vh, 25px) !important;
    font-size: clamp(11px, 2.9vh, 14px) !important;
    line-height: 1.08 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-game-meta,
  body.p103-force-landscape #p103PurpleLobby .p103-game-meta {
    left: 7px !important;
    right: 7px !important;
    bottom: 7px !important;
    font-size: clamp(8px, 2.05vh, 10px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-side,
  body.p103-force-landscape #p103PurpleLobby .p103-side {
    min-height: 0 !important;
    height: 100% !important;
    gap: clamp(6px, 1.2vh, 10px) !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-jackpot,
  body.p103-force-landscape #p103PurpleLobby .p103-jackpot,
  body.p103-lobby-visible #p103PurpleLobby .p103-bonus,
  body.p103-force-landscape #p103PurpleLobby .p103-bonus {
    min-height: 0 !important;
    border-radius: 13px !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom,
  body.p103-force-landscape #p103PurpleLobby .p103-bottom {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(38px, 1fr)) minmax(108px, 1.5fr) repeat(3, minmax(38px, 1fr)) !important;
    align-items: stretch !important;
    gap: clamp(3px, .8vw, 7px) !important;
    padding: clamp(4px, 1vh, 7px) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom button,
  body.p103-force-landscape #p103PurpleLobby .p103-bottom button {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 2px !important;
    gap: 2px !important;
    font-size: clamp(8px, 2vh, 10px) !important;
    line-height: 1.04 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom button i,
  body.p103-force-landscape #p103PurpleLobby .p103-bottom button i {
    font-size: clamp(16px, 4.5vh, 22px) !important;
    line-height: 1 !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom button span,
  body.p103-force-landscape #p103PurpleLobby .p103-bottom button span,
  body.p103-lobby-visible #p103PurpleLobby .p103-bottom .p103-spin small,
  body.p103-force-landscape #p103PurpleLobby .p103-bottom .p103-spin small {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom .p103-spin,
  body.p103-force-landscape #p103PurpleLobby .p103-bottom .p103-spin {
    box-sizing: border-box !important;
    margin: 0 !important;
    border-radius: 13px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom .p103-spin strong,
  body.p103-force-landscape #p103PurpleLobby .p103-bottom .p103-spin strong {
    font-size: clamp(13px, 3.7vh, 20px) !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  body.p103-booting #splash .p103-boot-loader,
  body.p103-game-loading #splash .p103-boot-loader {
    width: min(440px, 74vw) !important;
    transform: translateY(-4px) !important;
  }

  body.p103-booting #splash .progress-bar,
  body.p103-game-loading #splash .progress-bar {
    width: min(520px, 78vw) !important;
    height: clamp(13px, 2.8vh, 18px) !important;
    border-radius: 999px !important;
    background: rgba(40, 5, 71, .78) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 16px 36px rgba(51, 0, 92, .46) !important;
  }

  body.p103-booting #splash .progress-bar span,
  body.p103-game-loading #splash .progress-bar span {
    background: linear-gradient(90deg, #ff61f7 0%, #b96cff 42%, #6e35ff 72%, #ffca5f 100%) !important;
    box-shadow: 0 0 22px rgba(225, 87, 255, .72) !important;
  }
}

@media (max-width: 760px), (max-height: 390px) {
  body.p103-lobby-visible #p103PurpleLobby .p103-shell,
  body.p103-force-landscape #p103PurpleLobby .p103-shell {
    grid-template-rows: 40px 28px minmax(0, 1fr) 45px !important;
    gap: 5px !important;
    padding: 5px 8px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-main,
  body.p103-force-landscape #p103PurpleLobby .p103-main {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-side,
  body.p103-force-landscape #p103PurpleLobby .p103-side {
    display: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-content,
  body.p103-force-landscape #p103PurpleLobby .p103-content {
    grid-template-rows: minmax(66px, 35%) minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-hero-copy p,
  body.p103-force-landscape #p103PurpleLobby .p103-hero-copy p,
  body.p103-lobby-visible #p103PurpleLobby .p103-dots,
  body.p103-force-landscape #p103PurpleLobby .p103-dots {
    display: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-card-row,
  body.p103-force-landscape #p103PurpleLobby .p103-card-row {
    grid-auto-columns: clamp(86px, 18vw, 116px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-game-nav,
  body.p103-force-landscape #p103PurpleLobby .p103-game-nav {
    width: 24px !important;
    height: 42px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bottom,
  body.p103-force-landscape #p103PurpleLobby .p103-bottom {
    grid-template-columns: repeat(4, minmax(34px, 1fr)) minmax(90px, 1.35fr) repeat(3, minmax(34px, 1fr)) !important;
    padding: 3px !important;
    gap: 3px !important;
  }
}

#p103PurpleLobby .p103-game-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(18, 0, 27, 0.08)),
    var(--card-art) center/100% 100% no-repeat,
    linear-gradient(180deg, #230033 0%, #08000f 100%) !important;
}

/* Final splash alignment: keep the boot text, percent, and bar on the same center axis. */
body.p103-purple-ready #splash .p103-boot-loader,
body.p103-booting #splash .p103-boot-loader,
body.p103-game-loading #splash .p103-boot-loader {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: calc(50% - 34px) !important;
  width: min(360px, calc(100vw - 56px)) !important;
  min-width: min(220px, calc(100vw - 56px)) !important;
  max-width: min(360px, calc(100vw - 56px)) !important;
  box-sizing: border-box !important;
  justify-items: center !important;
  text-align: center !important;
  transform: translate(-50%, -50%) !important;
}

body.p103-purple-ready #splash .p103-boot-loader span,
body.p103-booting #splash .p103-boot-loader span,
body.p103-game-loading #splash .p103-boot-loader span {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
}

body.p103-purple-ready #splash .p103-boot-percent,
body.p103-booting #splash .p103-boot-percent,
body.p103-game-loading #splash .p103-boot-percent {
  left: 50% !important;
  right: auto !important;
  top: calc(50% + 26px) !important;
  width: min(520px, calc(100vw - 56px)) !important;
  text-align: center !important;
  transform: translateX(-50%) !important;
}

body.p103-purple-ready #splash .progress-bar,
body.p103-booting #splash .progress-bar,
body.p103-game-loading #splash .progress-bar {
  left: 50% !important;
  right: auto !important;
  top: calc(50% + 58px) !important;
  width: min(520px, calc(100vw - 56px)) !important;
  transform: translateX(-50%) !important;
}

/* Mobile auth: fit the login dialog inside short landscape screens and safe areas. */
body.p103-purple-ready #p103Auth {
  box-sizing: border-box !important;
  padding:
    max(10px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left)) !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

body.p103-purple-ready #p103Auth .p103-auth-card {
  width: min(430px, calc(100vw - 28px)) !important;
  max-width: 100% !important;
  max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + env(safe-area-inset-bottom))) !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  padding: clamp(14px, 3.2vh, 22px) !important;
  scrollbar-width: none !important;
}

body.p103-purple-ready #p103Auth .p103-auth-card::-webkit-scrollbar {
  display: none !important;
}

body.p103-purple-ready #p103Auth .p103-auth-card h2 {
  font-size: clamp(20px, 5vh, 28px) !important;
  line-height: 1.05 !important;
}

body.p103-purple-ready #p103Auth .p103-auth-card p {
  margin-bottom: clamp(8px, 2vh, 16px) !important;
  font-size: clamp(11px, 2.6vh, 14px) !important;
  line-height: 1.25 !important;
}

body.p103-purple-ready #p103Auth .p103-field {
  gap: clamp(3px, .9vh, 6px) !important;
  margin-top: clamp(7px, 1.8vh, 12px) !important;
  font-size: clamp(11px, 2.5vh, 13px) !important;
}

body.p103-purple-ready #p103Auth .p103-field input {
  height: clamp(34px, 8.8vh, 42px) !important;
  min-height: 34px !important;
  padding: 0 clamp(10px, 2vw, 13px) !important;
  border-radius: 9px !important;
  font-size: 16px !important;
}

body.p103-purple-ready #p103Auth .p103-auth-actions {
  gap: clamp(6px, 1.5vh, 10px) !important;
  margin-top: clamp(10px, 2.4vh, 16px) !important;
}

body.p103-purple-ready #p103Auth .p103-auth-actions button {
  min-width: 0 !important;
  min-height: clamp(34px, 8.5vh, 42px) !important;
  padding: 0 clamp(8px, 2vw, 14px) !important;
  border-radius: 10px !important;
  font-size: clamp(12px, 2.8vh, 15px) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

body.p103-purple-ready #p103Auth .p103-message {
  min-height: clamp(16px, 4vh, 22px) !important;
  margin-top: clamp(6px, 1.5vh, 12px) !important;
  font-size: clamp(11px, 2.5vh, 13px) !important;
  line-height: 1.2 !important;
}

@media (max-width: 860px), (max-height: 430px) {
  body.p103-purple-ready #p103Auth {
    place-items: center !important;
    padding:
      max(7px, env(safe-area-inset-top))
      max(9px, env(safe-area-inset-right))
      max(7px, env(safe-area-inset-bottom))
      max(9px, env(safe-area-inset-left)) !important;
  }

  body.p103-purple-ready #p103Auth .p103-auth-card {
    width: min(520px, calc(100vw - 18px)) !important;
    max-height: calc(100dvh - 14px) !important;
    padding: clamp(10px, 2.7vh, 15px) !important;
    border-radius: 12px !important;
  }

  body.p103-purple-ready #p103Auth .p103-modal-slice,
  body.p103-purple-ready #p103Auth .p103-auth-card::before,
  body.p103-purple-ready #p103Auth .p103-auth-card::after {
    opacity: .22 !important;
  }

  body.p103-purple-ready #p103Auth .p103-auth-card h2 {
    margin-bottom: 3px !important;
    font-size: clamp(18px, 5.4vh, 24px) !important;
  }

  body.p103-purple-ready #p103Auth .p103-auth-card p {
    margin-bottom: clamp(5px, 1.5vh, 9px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.p103-purple-ready #p103Auth .p103-field {
    margin-top: clamp(5px, 1.4vh, 8px) !important;
  }

  body.p103-purple-ready #p103Auth .p103-field input {
    height: clamp(32px, 8.4vh, 38px) !important;
  }

  body.p103-purple-ready #p103Auth .p103-auth-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(5px, 1.3vh, 8px) !important;
    margin-top: clamp(7px, 1.8vh, 10px) !important;
  }

  body.p103-purple-ready #p103Auth .p103-auth-actions button {
    min-height: clamp(32px, 8.2vh, 38px) !important;
    padding: 0 4px !important;
    font-size: clamp(11px, 2.8vh, 13px) !important;
  }
}

@media (max-height: 350px) {
  body.p103-purple-ready #p103Auth .p103-auth-card p {
    display: none !important;
  }

  body.p103-purple-ready #p103Auth .p103-auth-card {
    padding: 9px 12px !important;
  }

  body.p103-purple-ready #p103Auth .p103-field span {
    display: none !important;
  }
}

body.p103-purple-ready #p103Auth .p103-auth-actions .p103-primary,
body.p103-purple-ready #p103Auth .p103-auth-actions .p103-secondary,
body.p103-lobby-visible #p103PurpleLobby #p103Auth .p103-auth-actions .p103-primary,
body.p103-lobby-visible #p103PurpleLobby #p103Auth .p103-auth-actions .p103-secondary,
body.p103-force-landscape #p103PurpleLobby #p103Auth .p103-auth-actions .p103-primary,
body.p103-force-landscape #p103PurpleLobby #p103Auth .p103-auth-actions .p103-secondary {
  display: inline-grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  place-items: center !important;
  width: auto !important;
  max-width: none !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* In-game viewport final fit: games follow the real device orientation, not the lobby rotation. */
html.p103-game-portrait,
html.p103-game-landscape,
body.p103-game-visible,
body.p103-game-loading.p103-game-visible {
  overflow: hidden !important;
  background: #000 !important;
}

body.p103-game-visible #GameCanvas,
body.p103-game-visible #Cocos2dGameContainer,
html.p103-force-landscape body.p103-game-visible #GameCanvas,
html.p103-force-landscape body.p103-game-visible #Cocos2dGameContainer,
body.p103-force-landscape.p103-game-visible #GameCanvas,
body.p103-force-landscape.p103-game-visible #Cocos2dGameContainer,
body.p103-game-portrait.p103-game-visible #GameCanvas,
body.p103-game-portrait.p103-game-visible #Cocos2dGameContainer,
body.p103-game-landscape.p103-game-visible #GameCanvas,
body.p103-game-landscape.p103-game-visible #Cocos2dGameContainer {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  width: var(--p103-game-w, 100vw) !important;
  height: var(--p103-game-h, 100vh) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  transform-origin: top left !important;
  touch-action: none !important;
  object-fit: contain !important;
}

body.p103-game-portrait.p103-game-visible #GameCanvas,
body.p103-game-portrait.p103-game-visible #Cocos2dGameContainer {
  width: 100vw !important;
  height: 100dvh !important;
}

body.p103-game-landscape.p103-game-visible #GameCanvas,
body.p103-game-landscape.p103-game-visible #Cocos2dGameContainer {
  width: 100vw !important;
  height: 100dvh !important;
}

body.p103-game-visible .p103-orientation-tip,
body.p103-game-loading .p103-orientation-tip {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.p103-room-panel {
  display: block !important;
  width: min(640px, calc(100vw - 40px)) !important;
}

#p103Panel[data-p103-panel-kind="rooms"] {
  width: min(720px, calc(100vw - 28px)) !important;
}

#p103Panel[data-p103-panel-kind="rooms"] .p103-panel-grid {
  display: block !important;
}

.p103-room-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100% !important;
}

.p103-room-card {
  position: relative;
  min-height: 132px;
  padding: 14px 12px;
  border: 2px solid rgba(255, 223, 128, .72);
  border-radius: 14px;
  color: #fff7d2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 32%),
    radial-gradient(circle at 70% 10%, rgba(255, 217, 106, .24), transparent 30%),
    linear-gradient(180deg, rgba(116, 0, 142, .96), rgba(24, 0, 39, .98));
  box-shadow: 0 14px 30px rgba(12, 0, 24, .48), inset 0 0 16px rgba(255, 65, 226, .14);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.p103-room-card b,
.p103-room-card span,
.p103-room-card em,
.p103-room-card i {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p103-room-card b {
  color: #ffe57a;
  font-size: clamp(17px, 3.6vh, 22px);
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(92, 25, 0, .8);
}

.p103-room-card span {
  margin-top: 7px;
  color: #f4cbff;
  font-size: 13px;
  font-weight: 850;
}

.p103-room-card em,
.p103-room-card i {
  margin-top: 8px;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.p103-room-card::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff4ad, #ffba33 54%, #8b3b00);
  opacity: .9;
}

@media (max-width: 760px), (max-height: 430px) {
  .p103-room-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .p103-room-card {
    min-height: 92px;
    padding: 9px;
    border-radius: 11px;
  }

  .p103-room-card b {
    font-size: clamp(14px, 4vh, 18px);
  }

  .p103-room-card span,
  .p103-room-card em,
  .p103-room-card i {
    margin-top: 4px;
    font-size: clamp(9px, 2.4vh, 11px);
  }

  .p103-room-card::after {
    width: 30px;
    height: 30px;
  }
}

/* Final mobile-landscape right rail: keep the jackpot side visible instead of leaving a blank rail. */
@media (max-width: 1100px), (max-height: 560px), (pointer: coarse) {
  body.p103-lobby-visible #p103PurpleLobby .p103-main,
  body.p103-force-landscape #p103PurpleLobby .p103-main,
  body.p103-force-landscape .p103-main {
    grid-template-columns: minmax(0, 1fr) clamp(142px, 22vw, 210px) !important;
    gap: clamp(6px, 1.2vw, 10px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-side,
  body.p103-force-landscape #p103PurpleLobby .p103-side,
  body.p103-force-landscape .p103-side {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) clamp(58px, 20vh, 88px) !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    gap: clamp(5px, 1.1vh, 8px) !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-jackpot,
  body.p103-force-landscape #p103PurpleLobby .p103-jackpot,
  body.p103-lobby-visible #p103PurpleLobby .p103-bonus,
  body.p103-force-landscape #p103PurpleLobby .p103-bonus {
    display: block !important;
    min-height: 0 !important;
    padding: clamp(7px, 1.6vh, 10px) clamp(7px, 1.5vw, 10px) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-jackpot h2,
  body.p103-force-landscape #p103PurpleLobby .p103-jackpot h2,
  body.p103-lobby-visible #p103PurpleLobby .p103-bonus h2,
  body.p103-force-landscape #p103PurpleLobby .p103-bonus h2 {
    margin: 0 0 5px !important;
    font-size: clamp(13px, 4.2vh, 20px) !important;
    line-height: 1 !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-prize,
  body.p103-force-landscape #p103PurpleLobby .p103-prize {
    height: clamp(22px, 5.7vh, 30px) !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    margin-top: clamp(3px, .8vh, 5px) !important;
    padding: 0 6px !important;
    border-radius: 7px !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-prize span,
  body.p103-force-landscape #p103PurpleLobby .p103-prize span {
    font-size: clamp(8px, 2.1vh, 10px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-prize strong,
  body.p103-force-landscape #p103PurpleLobby .p103-prize strong {
    font-size: clamp(9px, 2.4vh, 12px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bonus p,
  body.p103-force-landscape #p103PurpleLobby .p103-bonus p {
    display: -webkit-box !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #f9d7ff !important;
    font-size: clamp(9px, 2.25vh, 12px) !important;
    line-height: 1.22 !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-treasure,
  body.p103-force-landscape #p103PurpleLobby .p103-treasure {
    right: -18px !important;
    bottom: -18px !important;
    width: clamp(58px, 12vw, 92px) !important;
    height: clamp(42px, 9vw, 66px) !important;
    opacity: .72 !important;
  }
}

@media (max-width: 700px), (max-height: 330px) {
  body.p103-lobby-visible #p103PurpleLobby .p103-main,
  body.p103-force-landscape #p103PurpleLobby .p103-main,
  body.p103-force-landscape .p103-main {
    grid-template-columns: minmax(0, 1fr) clamp(112px, 20vw, 138px) !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-bonus p,
  body.p103-force-landscape #p103PurpleLobby .p103-bonus p {
    display: none !important;
  }

  body.p103-lobby-visible #p103PurpleLobby .p103-side,
  body.p103-force-landscape #p103PurpleLobby .p103-side,
  body.p103-force-landscape .p103-side {
    grid-template-rows: minmax(0, 1fr) 38px !important;
  }
}
