/* ReelQuanta futuristic lobby redesign — start page only */

.portal-lobby-page {
  --rq-lobby-cyan: #27e5ff;
  --rq-lobby-blue: #3786ff;
  --rq-lobby-violet: #7447ff;
  --rq-lobby-purple: #b63cff;
  --rq-lobby-pink: #ff4fd8;
  --rq-lobby-gold: #ffc84a;
  --rq-lobby-deep: #030619;
  --rq-lobby-panel: rgba(6, 12, 37, .84);
  --rq-lobby-line: rgba(61, 182, 255, .36);
  min-height: 100vh;
  color: #f8fbff;
  background:
    linear-gradient(180deg, rgba(2, 4, 20, .84), rgba(3, 5, 22, .89) 38%, rgba(4, 7, 31, .94)),
    url('/assets/games/neon-fortune/background-installed.webp') center top / cover fixed no-repeat,
    #020416;
}

.portal-lobby-page::before {
  z-index: -2;
  background:
    radial-gradient(circle at 18% 18%, rgba(42, 198, 255, .20), transparent 25rem),
    radial-gradient(circle at 76% 24%, rgba(177, 54, 255, .21), transparent 31rem),
    radial-gradient(circle at 50% 85%, rgba(42, 89, 255, .17), transparent 40rem),
    linear-gradient(180deg, rgba(2, 5, 25, .14), rgba(2, 4, 20, .78));
  mask-image: none;
}

.portal-lobby-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(69, 124, 255, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 124, 255, .075) 1px, transparent 1px),
    radial-gradient(circle, rgba(89, 230, 255, .9) 0 1px, transparent 1.8px);
  background-size: 54px 54px, 54px 54px, 150px 150px;
  background-position: center 160px, center 160px, 20px 30px;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 88%, transparent);
}

.portal-lobby-page a,
.portal-lobby-page button,
.portal-lobby-page input {
  font-family: inherit;
}

/* Header */
.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 88px;
  padding: 8px 20px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(460px, 650px) minmax(340px, 1fr);
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid rgba(47, 220, 255, .68);
  background:
    linear-gradient(90deg, rgba(2, 5, 24, .98), rgba(7, 8, 35, .96) 48%, rgba(5, 4, 27, .98)),
    rgba(2, 4, 20, .96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .48), inset 0 -1px 0 rgba(91, 128, 255, .28);
  backdrop-filter: blur(22px) saturate(140%);
}

.portal-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1ce4ff 18%, #6d4fff 50%, #d64fff 80%, transparent);
  box-shadow: 0 0 16px rgba(48, 218, 255, .72);
}

.portal-topbar-left,
.portal-topbar-actions {
  gap: 16px;
}

.portal-home-button {
  position: relative;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(103, 73, 255, .82);
  color: white;
  background: linear-gradient(145deg, rgba(15, 23, 64, .94), rgba(10, 5, 43, .94));
  box-shadow: inset 0 0 0 1px rgba(38, 222, 255, .15), 0 0 24px rgba(76, 58, 255, .18);
}

.portal-home-button::before,
.portal-home-button::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #30e8ff, transparent);
  opacity: .7;
}

.portal-home-button::before { top: 0; left: 8px; }
.portal-home-button::after { bottom: 0; right: 8px; }

.portal-menu-lines {
  width: 24px;
  display: grid;
  gap: 5px;
}

.portal-menu-lines i {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #eef8ff;
  box-shadow: 0 0 8px rgba(56, 221, 255, .55);
}

.portal-menu-lines i:nth-child(2) { width: 17px; }

.portal-brand img {
  width: 245px;
  max-height: 65px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 12px rgba(56, 190, 255, .22));
}

.portal-player-card {
  min-height: 70px;
  padding: 9px 18px 9px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 190, 54, .55);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 50%, rgba(35, 173, 255, .18), transparent 24%),
    linear-gradient(135deg, rgba(15, 20, 51, .94), rgba(9, 8, 31, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(255, 178, 37, .08), 0 16px 38px rgba(0, 0, 0, .34), 0 0 24px rgba(255, 179, 34, .08);
}

.portal-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  border: 2px solid #ffc640;
  color: white;
  background: radial-gradient(circle at 36% 30%, #52dfff, #2355dd 58%, #6733d5);
  box-shadow: 0 0 0 4px rgba(24, 164, 255, .18), 0 0 22px rgba(30, 192, 255, .48), inset 0 1px 0 rgba(255,255,255,.44);
}

.portal-avatar::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(255, 193, 59, .32);
  border-radius: 50%;
}

.portal-player-line {
  font-size: .78rem;
  color: #ffd965;
}

.portal-player-line strong {
  color: #fff;
  font-size: 1.14rem;
  letter-spacing: .015em;
}

.chip-token {
  border: 1px solid #ffe070;
  background: radial-gradient(circle at 35% 30%, #fff09d, #e89b06 67%, #875000);
  color: #5b3300;
  box-shadow: 0 0 10px rgba(255, 190, 48, .4);
}

.portal-xp-track {
  height: 9px;
  margin: 5px 0 4px;
  border: 1px solid rgba(255, 199, 61, .48);
  background: rgba(2, 5, 19, .86);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .72), 0 0 8px rgba(255, 177, 26, .07);
}

.portal-xp-track i {
  background: linear-gradient(90deg, #ff7a19 0, #ffc839 35%, #25d8ff 58%, #8b4cff 100%);
  box-shadow: 0 0 12px rgba(37, 216, 255, .7);
}

.portal-player-main small {
  color: #9eabd1;
  font-size: .62rem;
  letter-spacing: .01em;
}

.portal-topbar-actions {
  justify-content: flex-end;
  min-width: 0;
}

.portal-status-chip {
  min-height: 56px;
  min-width: 112px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  color: #f5f7ff;
  background: transparent;
  cursor: pointer;
  border-left: 1px solid rgba(99, 95, 187, .24);
}

.portal-status-chip:hover { filter: brightness(1.22); }

.portal-status-chip span:last-child { display: grid; gap: 1px; }
.portal-status-chip small { color: #8e99c5; font-size: .5rem; font-weight: 900; letter-spacing: .12em; }
.portal-status-chip strong { font-size: .7rem; letter-spacing: .04em; }

.portal-status-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(131, 67, 255, .34), rgba(8, 10, 36, .7));
  box-shadow: 0 0 19px rgba(141, 69, 255, .32);
}

.portal-status-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #e9d7ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px #9d55ff);
}

.portal-missions-chip .portal-status-icon svg { stroke: #b8eaff; filter: drop-shadow(0 0 5px #36caff); }

.portal-icon-button {
  min-width: 52px;
  height: 52px;
  border-radius: 15px;
  border: 1px solid rgba(255, 113, 232, .68);
  background: linear-gradient(145deg, rgba(150, 30, 205, .92), rgba(59, 20, 125, .96));
  box-shadow: 0 0 20px rgba(225, 54, 255, .24), inset 0 1px 0 rgba(255,255,255,.24);
}

.portal-icon-button b {
  right: -7px;
  top: -8px;
  min-width: 30px;
  border: 1px solid #fff;
  background: linear-gradient(180deg, #ff4bd2, #9d1bb3);
}

.portal-user-button {
  min-height: 54px;
  min-width: 175px;
  padding: 6px 14px 6px 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(141, 66, 255, .78);
  border-radius: 17px;
  color: white;
  background: linear-gradient(135deg, rgba(65, 23, 138, .84), rgba(14, 12, 48, .9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 0 22px rgba(100, 47, 255, .17);
}

.portal-user-button > span[data-username] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.portal-user-button > i { margin-left: auto; font-style: normal; color: #c7c9ee; }

.portal-user-avatar {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: linear-gradient(145deg, #9c42ff, #4e23b1);
  box-shadow: 0 0 15px rgba(184, 72, 255, .45);
}

.portal-user-avatar svg {
  width: 25px;
  fill: none;
  stroke: white;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.portal-topbar-actions > .btn {
  min-height: 43px;
  border-radius: 12px;
}

.user-dropdown {
  margin-top: 9px;
  border: 1px solid rgba(93, 102, 255, .35);
  background: rgba(6, 9, 31, .97);
  box-shadow: 0 20px 48px rgba(0,0,0,.55), 0 0 24px rgba(94, 55, 255, .14);
  backdrop-filter: blur(18px);
}

/* Jackpot strip */
.portal-lobby-page .rq-network-strip {
  min-height: 48px;
  padding: 5px 20px;
  justify-content: flex-start;
  gap: clamp(18px, 2vw, 36px);
  border: 0;
  border-bottom: 1px solid rgba(61, 120, 255, .30);
  color: white;
  background: linear-gradient(90deg, rgba(4, 8, 28, .98), rgba(7, 10, 39, .97) 62%, rgba(5, 6, 25, .98));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3), inset 0 -1px 0 rgba(80, 62, 255, .18);
}

.portal-lobby-page .rq-network-strip::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, #1be7ff, transparent 24%, transparent 76%, #b14fff);
  opacity: .5;
}

.portal-lobby-page .rq-jackpot-live {
  position: relative;
  min-width: 265px;
  min-height: 34px;
  padding: 0 22px;
  margin-left: -20px;
  font-size: .69rem;
  color: #4bffe7;
  letter-spacing: .13em;
  background: linear-gradient(90deg, rgba(5, 62, 84, .54), rgba(14, 14, 52, .08));
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}

.portal-lobby-page .rq-jackpot-live i {
  width: 8px;
  height: 8px;
  background: #2bffc4;
  box-shadow: 0 0 15px #2bffc4;
}

.portal-lobby-page .rq-network-strip > div:not(.rq-jackpot-live):not(.rq-network-player)::before {
  content: "◈";
  color: #ffc84c;
  filter: drop-shadow(0 0 5px rgba(255, 185, 40, .45));
}

.portal-lobby-page .rq-network-strip small { color: #b08bdd; font-size: .58rem; }
.portal-lobby-page .rq-network-strip strong { color: #ffd75d; font-size: .83rem; }
.portal-lobby-page .rq-network-player { color: #8d99bf; }
.portal-lobby-page .rq-network-player b { color: #fff; }

.portal-lobby-page .rq-network-strip button {
  min-height: 32px;
  padding: 7px 15px;
  border: 1px solid rgba(42, 191, 255, .42);
  border-radius: 9px;
  color: #8eefff;
  background: linear-gradient(180deg, rgba(6, 49, 78, .74), rgba(5, 20, 42, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 14px rgba(32, 190, 255, .08);
}

.portal-lobby-page .rq-network-strip button:last-child {
  color: #ffe06e;
  border-color: rgba(255, 197, 51, .42);
  background: linear-gradient(180deg, rgba(75, 47, 9, .7), rgba(28, 19, 8, .92));
}

/* Left rail */
.portal-side-rail {
  top: 154px;
  left: 14px;
  width: 106px;
  gap: 10px;
  padding: 0;
}

.portal-side-rail button,
.portal-side-rail a {
  min-height: 94px;
  padding: 9px 6px;
  gap: 7px;
  border-radius: 14px;
  border: 1px solid rgba(52, 132, 255, .45);
  color: #eef6ff;
  background: linear-gradient(145deg, rgba(8, 20, 59, .94), rgba(8, 6, 36, .95));
  box-shadow: inset 0 0 0 1px rgba(40, 221, 255, .07), 0 12px 30px rgba(0, 0, 0, .32), 0 0 18px rgba(49, 71, 255, .09);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.portal-side-rail button:hover,
.portal-side-rail a:hover,
.portal-side-rail .active {
  transform: translateX(4px);
  border-color: rgba(106, 59, 255, .95);
  background: linear-gradient(145deg, rgba(73, 27, 171, .96), rgba(15, 14, 67, .98));
  box-shadow: inset 0 0 0 1px rgba(67, 225, 255, .22), 0 0 0 2px rgba(123, 52, 255, .15), 0 0 26px rgba(86, 63, 255, .36);
}

.portal-side-rail .rail-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(78, 60, 255, .28), rgba(4, 9, 38, .64));
  box-shadow: inset 0 0 14px rgba(38, 212, 255, .08);
}

.portal-side-rail .rail-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: #bcefff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(43, 221, 255, .66));
}

.portal-side-rail .active .rail-icon svg { stroke: #f0d4ff; filter: drop-shadow(0 0 6px #b84cff); }
.portal-side-rail small { font-size: .64rem; letter-spacing: .055em; }
.portal-side-rail b {
  top: -6px;
  right: -7px;
  min-width: 31px;
  height: 21px;
  padding: 0 5px;
  border: 1px solid #ffc7ff;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4bd2, #a312a9);
  font-size: .53rem;
  box-shadow: 0 0 14px rgba(255, 50, 213, .42);
}

/* Main shell */
.portal-lobby-page .portal-main {
  width: min(1220px, calc(100vw - 465px));
  margin: 0 0 0 clamp(128px, 7.8vw, 150px);
  padding: 28px 0 80px;
}

.portal-tabs {
  position: relative;
  min-height: 58px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 4px;
  margin: 0 0 12px;
  border: 1px solid rgba(58, 117, 255, .25);
  border-radius: 17px;
  background: rgba(7, 11, 39, .74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 30px rgba(0,0,0,.2);
  backdrop-filter: blur(16px);
}

.portal-tabs::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2ee5ff 25%, #8450ff 52%, transparent);
  box-shadow: 0 0 12px rgba(55, 218, 255, .55);
}

.portal-tabs button,
.portal-tabs button.active {
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #c8d2ee;
  text-shadow: none;
  background: transparent;
  box-shadow: none;
  font-size: .77rem;
  letter-spacing: .025em;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.portal-tabs button:hover {
  color: white;
  background: rgba(56, 72, 156, .22);
}

.portal-tabs button.active {
  color: white;
  border-color: rgba(104, 74, 255, .72);
  background: linear-gradient(135deg, rgba(91, 49, 231, .94), rgba(44, 49, 177, .91));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 21px rgba(95, 57, 255, .36), 0 8px 18px rgba(0,0,0,.2);
}

.portal-showcase {
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, .92fr);
  gap: 16px;
}

.portal-event-card {
  isolation: isolate;
  min-height: 390px;
  overflow: visible;
  border: 1px solid rgba(56, 222, 255, .68);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 36%, rgba(136, 63, 255, .22), transparent 28%),
    linear-gradient(90deg, rgba(4, 7, 27, .84), rgba(6, 8, 32, .28)),
    var(--feature-bg, url('/assets/games/neon-fortune/background-installed.webp')) center / cover no-repeat;
  box-shadow: 0 0 0 2px rgba(105, 53, 255, .12), 0 20px 50px rgba(0,0,0,.42), 0 0 34px rgba(55, 148, 255, .21), inset 0 0 42px rgba(75, 45, 255, .13);
}

.portal-event-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(125deg, #2cecff, transparent 24%, transparent 58%, #b64dff 82%, #ff4fd3);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.portal-event-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 30% 8% -12px;
  border-radius: 50%;
  background: rgba(59, 46, 255, .34);
  filter: blur(28px);
}

.portal-event-overlay {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 25, .98) 0, rgba(8, 7, 40, .92) 39%, rgba(7, 6, 31, .20) 72%, rgba(6, 3, 28, .10)),
    linear-gradient(180deg, rgba(6, 8, 37, .18), rgba(5, 4, 28, .68));
  border-radius: inherit;
}

.portal-event-grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .20;
  border-radius: inherit;
  background-image: linear-gradient(rgba(54, 154, 255, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(54, 154, 255, .25) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent 10%, #000 65%, transparent);
}

.portal-event-copy {
  position: relative;
  z-index: 3;
  width: 47%;
  min-height: 390px;
  padding: 45px 38px 54px 47px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.event-kicker {
  color: #38eaff;
  font-size: .72rem;
  letter-spacing: .18em;
  text-shadow: 0 0 12px rgba(39, 222, 255, .45);
}

.portal-event-copy h1 {
  margin: 11px 0 9px;
  display: grid;
  font-size: clamp(3.15rem, 4.7vw, 4.7rem);
  line-height: .80;
  letter-spacing: -.055em;
  filter: drop-shadow(0 5px 0 rgba(24, 24, 89, .72)) drop-shadow(0 0 15px rgba(79, 173, 255, .18));
}

.portal-event-copy h1 span:first-child {
  background: linear-gradient(180deg, #fff, #a6eaff 52%, #56b9ff 82%, #5b57f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portal-event-copy h1 span:last-child {
  margin-top: 8px;
  background: linear-gradient(180deg, #fff, #e1b9ff 42%, #c55aff 78%, #7244ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.portal-event-copy p {
  max-width: 350px;
  margin: 8px 0 23px;
  color: #d4dcf5;
  line-height: 1.62;
  font-size: .94rem;
  text-shadow: 0 2px 4px rgba(0,0,0,.7);
}

.portal-event-copy .btn-gold {
  min-width: 220px;
  min-height: 54px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ffd45e;
  border-radius: 11px;
  color: #ffe079;
  background: linear-gradient(180deg, rgba(80, 43, 8, .88), rgba(23, 15, 14, .95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 2px rgba(255, 173, 23, .08), 0 0 24px rgba(255, 168, 25, .32), 0 8px 20px rgba(0,0,0,.3);
  font-weight: 1000;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.portal-event-copy .btn-gold:hover {
  transform: translateY(-2px);
  color: #fff4b3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 32px rgba(255, 176, 29, .52), 0 10px 24px rgba(0,0,0,.34);
}

.portal-event-copy .btn-gold span { font-size: 1.7rem; line-height: 0; }

.portal-event-art {
  position: absolute;
  z-index: 2;
  top: 38px;
  right: 4px;
  bottom: 35px;
  width: 59%;
  pointer-events: none;
}

.portal-event-art::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 0;
  bottom: 4%;
  height: 42%;
  background: radial-gradient(ellipse, rgba(86, 43, 255, .55), transparent 66%);
  filter: blur(18px);
}

.event-wild-art {
  position: absolute;
  left: 14%;
  top: 15%;
  width: 59%;
  filter: drop-shadow(0 0 22px rgba(255, 100, 72, .35)) drop-shadow(0 0 30px rgba(48, 186, 255, .30));
  transform: rotate(-1deg);
  animation: rqHeroWildFloat 5.5s ease-in-out infinite;
}

.event-diamond-art {
  position: absolute;
  right: -2%;
  top: 15%;
  width: 47%;
  filter: drop-shadow(0 0 26px rgba(184, 69, 255, .7));
  animation: rqHeroDiamondFloat 4.6s ease-in-out infinite;
}

.event-light-orbit {
  position: absolute;
  right: 4%;
  top: 4%;
  width: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(105, 171, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(100, 79, 255, .18), inset 0 0 22px rgba(100, 79, 255, .12);
  transform: rotate(-18deg);
}

.event-light-orbit::before,
.event-light-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff, 0 0 25px #8f4cff;
}
.event-light-orbit::before { left: 5%; top: 45%; }
.event-light-orbit::after { right: 13%; bottom: 14%; }

.portal-event-arrow {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 44px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(77, 118, 255, .34);
  color: white;
  background: rgba(7, 10, 38, .78);
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
  font-size: 2.2rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}
.portal-event-arrow-left { left: -25px; border-radius: 18px 6px 6px 18px; }
.portal-event-arrow-right { right: -14px; border-radius: 6px 18px 18px 6px; }
.portal-event-arrow:hover { border-color: #55dfff; box-shadow: 0 0 20px rgba(47, 218, 255, .25); }

.event-progress-dots {
  bottom: 17px;
  gap: 10px;
}
.event-progress-dots i {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(219, 216, 255, .76);
  background: rgba(7, 8, 31, .8);
}
.event-progress-dots i.active {
  background: #43deff;
  border-color: #d8fbff;
  box-shadow: 0 0 12px rgba(48, 221, 255, .85);
}

@keyframes rqHeroWildFloat {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(.5deg); }
}
@keyframes rqHeroDiamondFloat {
  0%,100% { transform: translateY(2px) scale(1); }
  50% { transform: translateY(-8px) scale(1.025); }
}

/* Promo stack */
.portal-promo-stack { gap: 16px; }

.portal-promo-card {
  min-height: 187px;
  padding: 20px;
  grid-template-columns: 86px minmax(0,1fr) auto;
  gap: 14px;
  border: 1px solid rgba(80, 174, 255, .46);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 18px 38px rgba(0,0,0,.32), 0 0 25px rgba(60, 75, 255, .09);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(15px);
}

.portal-promo-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.portal-promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 42%);
}

.portal-promo-card::after {
  width: 180px;
  height: 180px;
  right: -80px;
  top: -92px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 68%);
}

.wheel-promo {
  border-color: rgba(214, 73, 255, .72);
  background:
    radial-gradient(circle at 86% 8%, rgba(244, 73, 255, .28), transparent 42%),
    linear-gradient(135deg, rgba(67, 25, 150, .95), rgba(91, 21, 150, .87) 56%, rgba(35, 17, 89, .96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 38px rgba(0,0,0,.34), 0 0 26px rgba(210, 61, 255, .23);
}

.daily-promo {
  border-color: rgba(46, 219, 255, .70);
  background:
    radial-gradient(circle at 85% 8%, rgba(42, 235, 255, .22), transparent 42%),
    linear-gradient(135deg, rgba(3, 95, 158, .96), rgba(9, 75, 129, .91) 55%, rgba(7, 30, 69, .96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 38px rgba(0,0,0,.34), 0 0 26px rgba(37, 203, 255, .20);
}

.join-promo {
  border-color: rgba(255, 182, 48, .68);
  background: linear-gradient(135deg, rgba(102, 46, 12, .94), rgba(88, 25, 80, .91) 56%, rgba(24, 13, 61, .96));
}

.promo-spark {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255,255,255,.52);
  background: rgba(6, 8, 34, .32);
  box-shadow: 0 0 0 6px rgba(255,255,255,.04), inset 0 0 20px rgba(255,255,255,.06), 0 0 22px rgba(169, 62, 255, .25);
}

.promo-wheel-graphic {
  position: relative;
  background: conic-gradient(from 0deg, #713cff 0 12.5%, #bd42ff 12.5% 25%, #5b3cff 25% 37.5%, #e354ff 37.5% 50%, #713cff 50% 62.5%, #bd42ff 62.5% 75%, #5b3cff 75% 87.5%, #e354ff 87.5%);
  border: 4px solid #d9b7ff;
  box-shadow: 0 0 0 4px rgba(127, 62, 255, .23), 0 0 24px rgba(190, 64, 255, .68), inset 0 0 19px rgba(7,2,30,.72);
}
.promo-wheel-graphic::before,
.promo-wheel-graphic::after,
.promo-wheel-graphic i {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
}
.promo-wheel-graphic::after { inset: 29px; background: #4b1b99; box-shadow: 0 0 9px #fff; }
.promo-wheel-graphic i { inset: 6px 36px; border-radius: 999px; border: 0; background: rgba(255,255,255,.75); transform: rotate(45deg); }

.promo-chip-graphic {
  border-color: rgba(82, 230, 255, .62);
  box-shadow: 0 0 0 5px rgba(23, 190, 255, .12), 0 0 23px rgba(30, 214, 255, .38);
}
.promo-chip-graphic i {
  position: absolute;
  width: 38px;
  height: 12px;
  border: 2px solid #c8f7ff;
  border-radius: 50%;
  background: linear-gradient(90deg, #38cfff, #7a6dff);
  box-shadow: 0 0 12px rgba(53, 221, 255, .48);
}
.promo-chip-graphic i:nth-child(1) { transform: translateY(11px); }
.promo-chip-graphic i:nth-child(2) { transform: translateY(0); }
.promo-chip-graphic i:nth-child(3) { transform: translateY(-11px); }

.portal-promo-card small { color: #67e9ff; font-size: .57rem; }
.wheel-promo small { color: #ddb5ff; }
.portal-promo-card strong { margin: 5px 0 6px; font-size: 1.35rem; line-height: 1.08; }
.portal-promo-card p { color: #d8dff4; font-size: .73rem; line-height: 1.45; }
.portal-promo-card > b {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  background: rgba(4, 6, 30, .43);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

/* Available games */
.portal-tools {
  position: relative;
  margin-top: 30px;
  padding: 0 2px;
}

.portal-tools::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  width: 210px;
  height: 1px;
  background: linear-gradient(90deg, #4bdfff, transparent);
  box-shadow: 0 0 10px rgba(55, 216, 255, .55);
}

.portal-tools .section-kicker,
.portal-section-heading .section-kicker {
  color: #8e9bd1;
  font-size: .62rem;
  letter-spacing: .18em;
}

.portal-tools h2,
.portal-section-heading h2 {
  margin: 4px 0 0;
  color: #bfeaff;
  font-size: clamp(2rem, 3.25vw, 3rem);
  font-style: italic;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(53, 202, 255, .20), 0 3px 0 rgba(38, 23, 98, .8);
}

.portal-tools h2 span {
  margin-left: 12px;
  color: #2e8cff;
  font-size: .72em;
  letter-spacing: -.15em;
}

.portal-search {
  min-width: 365px;
  height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(91, 70, 255, .68);
  border-radius: 15px;
  color: #cbeeff;
  background: linear-gradient(180deg, rgba(5, 9, 31, .94), rgba(7, 6, 29, .94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 22px rgba(76, 57, 255, .17);
  backdrop-filter: blur(13px);
}

.portal-search:focus-within {
  border-color: #35dfff;
  box-shadow: 0 0 0 3px rgba(43, 210, 255, .09), 0 0 25px rgba(43, 210, 255, .18);
}

.portal-search span { color: #ddedff; }
.portal-search input::placeholder { color: #697399; }

.portal-game-section {
  position: relative;
  margin-top: 13px;
  padding: 7px;
  border: 1px solid rgba(68, 84, 220, .20);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(7, 10, 35, .72), rgba(8, 7, 31, .84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 45px rgba(0,0,0,.20);
  backdrop-filter: blur(13px);
}

.portal-lobby-page .portal-game-grid {
  grid-template-columns: 1.16fr repeat(3, minmax(0, 1fr));
  grid-auto-rows: 168px;
  gap: 10px;
}

.portal-lobby-page .image-only-game-card {
  border: 1px solid rgba(76, 157, 255, .54);
  border-radius: 14px;
  background: #080a29;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 10px 26px rgba(0,0,0,.44), 0 0 16px rgba(64, 99, 255, .10);
}

.portal-lobby-page .image-only-game-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.07), transparent 34%);
}

.portal-lobby-page .image-only-game-card:hover,
.portal-lobby-page .image-only-game-card:focus-visible {
  transform: translateY(-5px) scale(1.015);
  border-color: #b24dff;
  box-shadow: 0 18px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(180, 72, 255, .55), 0 0 28px rgba(159, 57, 255, .34);
}

.portal-lobby-page .image-only-game-card .game-art::after {
  background: linear-gradient(180deg, rgba(3,4,20,.04) 24%, rgba(4,5,22,.13) 50%, rgba(4,4,20,.95) 100%);
}

.portal-lobby-page .game-title-overlay {
  left: 14px;
  bottom: 12px;
  color: #fff;
  font-size: clamp(1rem, 1.35vw, 1.32rem);
  letter-spacing: -.02em;
  text-shadow: 0 3px 4px #000, 0 0 15px rgba(65, 178, 255, .25);
}

.portal-lobby-page .portal-feature-card .game-title-overlay {
  font-size: clamp(1.5rem, 2.45vw, 2.35rem);
}

.portal-lobby-page .game-favorite {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(2, 5, 24, .78);
  box-shadow: 0 0 14px rgba(65, 165, 255, .15);
}

.portal-lobby-page .game-hover-play {
  border: 1px solid rgba(255,255,255,.9);
  background: linear-gradient(145deg, #bc4cff, #2e7dff);
  box-shadow: 0 0 28px rgba(174, 64, 255, .50);
}

.portal-lobby-page .image-game-status {
  border: 1px solid rgba(81, 231, 255, .42);
  background: rgba(5, 21, 43, .86);
  box-shadow: 0 0 13px rgba(44, 217, 255, .10);
}

.portal-empty-state {
  color: #cbd5f4;
  background: rgba(7, 9, 33, .72);
  border: 1px solid rgba(89, 104, 208, .20);
}

.portal-lobby-page .portal-coming-section {
  background: linear-gradient(145deg, rgba(13, 9, 42, .91), rgba(7, 8, 30, .95));
  border-color: rgba(133, 80, 255, .25);
}

.progression-section,
.guest-welcome {
  border: 1px solid rgba(81, 136, 255, .28);
  background: linear-gradient(135deg, rgba(11, 16, 55, .88), rgba(28, 13, 70, .88));
  box-shadow: 0 22px 50px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(15px);
}

.progression-cards article { background: rgba(255,255,255,.05); }
.progression-cards span { background: linear-gradient(145deg, #50dcff, #7744ff); color: #fff; }

.portal-footer {
  border-top: 1px solid rgba(65, 180, 255, .22);
  background: rgba(2, 4, 18, .94);
  box-shadow: 0 -12px 40px rgba(0,0,0,.26);
}

/* Live winners panel */
.portal-lobby-page .rq-live-sidebar {
  top: 165px;
  right: 18px;
  width: 292px;
  max-height: calc(100vh - 185px);
  border: 1px solid rgba(59, 180, 255, .42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 70% 0, rgba(83, 55, 255, .15), transparent 28%),
    linear-gradient(160deg, rgba(5, 12, 39, .96), rgba(4, 15, 33, .97));
  box-shadow: 0 24px 60px rgba(0,0,0,.48), 0 0 0 1px rgba(84, 70, 255, .08), 0 0 29px rgba(44, 161, 255, .10);
  backdrop-filter: blur(18px) saturate(130%);
}

.portal-lobby-page .rq-live-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.055), transparent 35%);
}

.portal-lobby-page .rq-live-sidebar header {
  position: relative;
  padding: 18px 18px 15px 54px;
  border-bottom: 1px solid rgba(79, 131, 255, .18);
  background: linear-gradient(90deg, rgba(21, 72, 125, .17), rgba(70, 44, 140, .12));
}

.portal-lobby-page .rq-live-sidebar header::before {
  content: "♜";
  position: absolute;
  left: 18px;
  top: 17px;
  color: #42dfff;
  font-size: 1.55rem;
  filter: drop-shadow(0 0 7px #32cfff);
}

.portal-lobby-page .rq-live-sidebar header span {
  color: #47dfff;
  font-size: .58rem;
}

.portal-lobby-page .rq-live-sidebar header strong {
  margin-top: 5px;
  color: #ffd65c;
  font-size: 1rem;
  letter-spacing: .045em;
}

.portal-lobby-page .rq-live-sidebar ol {
  padding: 9px 15px;
}

.portal-lobby-page .rq-live-sidebar li {
  min-height: 42px;
  padding: 11px 4px;
  align-items: center;
  border-bottom: 1px solid rgba(86, 107, 194, .16);
  font-size: .69rem;
}

.portal-lobby-page .rq-live-sidebar li b {
  max-width: 158px;
  color: #f3f6ff;
}

.portal-lobby-page .rq-live-sidebar li span {
  color: #ffd75c;
  text-shadow: 0 0 8px rgba(255, 190, 49, .18);
}

.portal-lobby-page .rq-social-feed {
  padding: 11px 17px 12px;
  border-top: 1px solid rgba(84, 105, 190, .13);
}

.portal-lobby-page .rq-social-feed > b {
  color: #42dfff;
  font-size: .61rem;
}

.portal-lobby-page .rq-social-feed div {
  max-height: 210px;
  transition: max-height .28s ease;
}

.portal-lobby-page .rq-social-feed p {
  position: relative;
  margin: 10px 0;
  padding-left: 14px;
  color: #b9c6df;
  font-size: .63rem;
  line-height: 1.42;
}

.portal-lobby-page .rq-social-feed p::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #35dfff;
  box-shadow: 0 0 9px #35dfff;
}

.rq-live-view-button {
  width: calc(100% - 28px);
  min-height: 39px;
  margin: 0 14px 14px;
  border: 1px solid rgba(105, 74, 255, .55);
  border-radius: 11px;
  color: #e8e7ff;
  background: linear-gradient(180deg, rgba(49, 25, 111, .70), rgba(14, 13, 47, .90));
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .055em;
  cursor: pointer;
}
.rq-live-view-button:hover { border-color: #54dfff; box-shadow: 0 0 17px rgba(54, 213, 255, .16); }
.portal-lobby-page .rq-live-sidebar.expanded { max-height: calc(100vh - 120px); overflow-y: auto; }
.portal-lobby-page .rq-live-sidebar.expanded .rq-social-feed div { max-height: 520px; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .event-wild-art,
  .event-diamond-art { animation: none; }
  .portal-side-rail button,
  .portal-side-rail a,
  .portal-promo-card,
  .portal-lobby-page .image-only-game-card { transition: none; }
}

/* Responsive */
@media (max-width: 1530px) {
  .portal-topbar { grid-template-columns: minmax(235px, .8fr) minmax(420px, 610px) minmax(290px, .8fr); }
  .portal-brand img { width: 210px; }
  .portal-status-chip { min-width: 94px; padding-inline: 7px; }
  .portal-status-chip small { display: none; }
  .portal-user-button { min-width: 155px; }
}

@media (max-width: 1320px) {
  .portal-lobby-page .rq-live-sidebar { display: none; }
  .portal-lobby-page .portal-main {
    width: min(calc(100% - 165px), 1180px);
    margin-left: 135px;
    padding-right: 18px;
  }
  .portal-showcase { grid-template-columns: minmax(0, 2.05fr) minmax(250px, .82fr); }
}

@media (max-width: 1140px) {
  .portal-topbar { grid-template-columns: 1fr auto; }
  .portal-player-card { grid-column: 1 / -1; grid-row: 2; width: min(100%, 720px); justify-self: center; }
  .portal-status-chip { display: none !important; }
  .portal-lobby-page .portal-main { padding-top: 22px; }
  .portal-event-copy { width: 58%; }
  .portal-lobby-page .portal-game-grid { grid-template-columns: 1.15fr repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .portal-side-rail { display: none !important; }
  .portal-lobby-page .portal-main {
    width: min(calc(100% - 28px), 900px);
    margin: 0 auto;
    padding-right: 0;
  }
  .portal-showcase { grid-template-columns: 1fr; }
  .portal-promo-stack { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .portal-promo-card { min-height: 166px; }
  .portal-event-card { overflow: hidden; }
  .portal-event-arrow-left { left: 7px; }
  .portal-event-arrow-right { right: 7px; }
  .portal-lobby-page .portal-game-grid,
  .portal-lobby-page .portal-recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
}

@media (max-width: 680px) {
  .portal-topbar { min-height: 68px; padding: 6px 10px; }
  .portal-home-button { width: 48px; height: 48px; border-radius: 13px; }
  .portal-brand img { width: 150px; }
  .portal-user-button { min-width: 52px; width: 52px; padding: 5px; }
  .portal-user-button > span[data-username], .portal-user-button > i { display: none; }
  .portal-player-card { min-height: 62px; padding: 7px 12px 7px 7px; }
  .portal-tabs { display: flex; overflow-x: auto; }
  .portal-tabs button, .portal-tabs button.active { min-width: 128px; }
  .portal-event-card { min-height: 385px; }
  .portal-event-copy { width: 100%; min-height: 385px; padding: 36px 25px 50px; background: linear-gradient(90deg, rgba(3,5,25,.96), rgba(4,6,29,.82) 72%, rgba(4,5,24,.52)); }
  .portal-event-copy h1 { font-size: clamp(3rem, 17vw, 4.7rem); }
  .portal-event-copy p { max-width: 80%; }
  .portal-event-art { opacity: .30; width: 68%; right: -10%; }
  .portal-promo-stack { grid-template-columns: 1fr; }
  .portal-tools { align-items: stretch; }
  .portal-search { min-width: 0; width: 100%; }
  .portal-lobby-page .portal-game-grid,
  .portal-lobby-page .portal-recent-grid { grid-template-columns: 1fr; }
}


/* Featured carousel transitions and per-game art tuning */
.portal-event-copy,
.portal-event-art,
.portal-event-card::before {
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}
.portal-event-card.feature-changing .portal-event-copy,
.portal-event-card.feature-changing .portal-event-art {
  opacity: .18;
  transform: translateY(5px);
  filter: blur(2px);
}
.event-progress-dots i { cursor: pointer; }
.event-progress-dots i:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.portal-event-card[data-feature-id="pharaohs-golden-secret"] .portal-event-copy h1,
.portal-event-card[data-feature-id="crystal-kingdom"] .portal-event-copy h1 {
  font-size: clamp(2.65rem, 3.8vw, 3.95rem);
  line-height: .86;
}
.portal-event-card[data-feature-id="pharaohs-golden-secret"] .event-wild-art {
  left: 6%;
  top: 18%;
  width: 64%;
  filter: drop-shadow(0 0 22px rgba(255, 190, 45, .45));
}
.portal-event-card[data-feature-id="pharaohs-golden-secret"] .event-diamond-art {
  right: 1%;
  top: 14%;
  width: 39%;
  filter: drop-shadow(0 0 24px rgba(255, 189, 50, .55));
}
.portal-event-card[data-feature-id="dragons-fire"] .portal-event-copy h1 {
  font-size: clamp(3rem, 4.35vw, 4.45rem);
}
.portal-event-card[data-feature-id="dragons-fire"] .event-wild-art {
  left: 4%;
  top: 9%;
  width: 56%;
  filter: drop-shadow(0 0 24px rgba(255, 119, 25, .52));
}
.portal-event-card[data-feature-id="dragons-fire"] .event-diamond-art {
  right: -7%;
  top: 5%;
  width: 58%;
  filter: drop-shadow(0 0 28px rgba(255, 76, 28, .58));
}
.portal-event-card[data-feature-id="crystal-kingdom"] .event-wild-art {
  left: 2%;
  top: 12%;
  width: 63%;
  filter: drop-shadow(0 0 22px rgba(87, 216, 255, .52));
}
.portal-event-card[data-feature-id="crystal-kingdom"] .event-diamond-art {
  right: -1%;
  top: 10%;
  width: 44%;
  filter: drop-shadow(0 0 26px rgba(92, 178, 255, .65));
}


/* Futuristic single-focus Magic Bonus Wheel */
.wheel-modal-backdrop {
  background:
    radial-gradient(circle at 50% 46%, rgba(93, 28, 194, .28), transparent 42%),
    rgba(1, 3, 18, .9);
  backdrop-filter: blur(18px) saturate(1.25);
}
.magic-wheel-panel {
  isolation: isolate;
  width: min(calc(100% - 28px), 1080px);
  padding: 28px 42px 34px;
  overflow: hidden auto;
  border: 1px solid rgba(153, 98, 255, .72);
  border-radius: 34px;
  background:
    linear-gradient(rgba(15, 16, 55, .92), rgba(3, 8, 31, .97)) padding-box,
    linear-gradient(120deg, #37d9ff, #9a4cff 34%, #fa54ff 67%, #37d9ff) border-box;
  box-shadow:
    0 0 0 2px rgba(38, 24, 95, .95),
    0 0 52px rgba(104, 53, 255, .42),
    0 34px 110px rgba(0, 0, 0, .78),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}
.magic-wheel-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(58, 202, 255, .08) 50%, transparent 50.4%),
    linear-gradient(transparent 49.6%, rgba(176, 77, 255, .07) 50%, transparent 50.4%),
    radial-gradient(circle at 50% 38%, rgba(174, 62, 255, .2), transparent 35%),
    repeating-linear-gradient(135deg, transparent 0 42px, rgba(110, 74, 218, .035) 43px 44px);
  background-size: 70px 70px, 70px 70px, auto, auto;
  pointer-events: none;
}
.magic-wheel-panel::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(94, 207, 255, .17);
  border-radius: 25px;
  clip-path: polygon(0 20px, 20px 0, calc(100% - 82px) 0, calc(100% - 62px) 20px, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
  pointer-events: none;
}
.magic-wheel-close {
  width: 48px;
  height: 48px;
  right: 25px;
  top: 24px;
  border: 1px solid rgba(203, 112, 255, .78);
  border-radius: 14px;
  color: #ffd7ff;
  background: linear-gradient(145deg, rgba(67, 24, 131, .92), rgba(15, 10, 57, .98));
  box-shadow: inset 0 0 18px rgba(166, 76, 255, .24), 0 0 20px rgba(197, 72, 255, .28);
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
}
.magic-wheel-close:hover { filter: brightness(1.25); box-shadow: inset 0 0 22px rgba(217, 111, 255, .35), 0 0 28px rgba(197, 72, 255, .5); }
.magic-wheel-heading { position: relative; z-index: 2; text-align: center; }
.magic-wheel-heading > span {
  color: #ff9dfd;
  letter-spacing: .28em;
  font-size: .72rem;
  text-shadow: 0 0 16px rgba(255, 80, 244, .9);
}
.magic-wheel-heading h2 {
  margin: 7px 58px 4px;
  font-size: clamp(2.45rem, 5.5vw, 4.75rem);
  letter-spacing: .025em;
  line-height: .98;
  background: linear-gradient(180deg, #fff 0%, #dce4ff 33%, #c888ff 62%, #7046e7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(155, 84, 255, .42));
  text-shadow: none;
}
.magic-wheel-heading p { margin: 10px 0 10px; color: #c7cff4; font-size: .94rem; }
.magic-wheel-heading p strong { color: #d88cff; }
.magic-wheel-layout { display: block; }
.magic-wheel-stage-wrap { display: grid; justify-items: center; gap: 19px; }
.magic-wheel-stage {
  --wheel-size: min(560px, 55vw, 58vh);
  width: var(--wheel-size);
  height: var(--wheel-size);
  max-width: none;
  margin: 10px auto 0;
  filter: drop-shadow(0 0 22px rgba(43, 146, 255, .24)) drop-shadow(0 0 34px rgba(185, 63, 255, .18));
}
.magic-wheel-stage::before {
  inset: -22px;
  background:
    radial-gradient(circle, transparent 57.5%, rgba(71, 220, 255, .72) 58% 58.7%, transparent 59.3%),
    radial-gradient(circle, transparent 63.4%, rgba(191, 91, 255, .42) 63.9% 64.4%, transparent 65%),
    repeating-conic-gradient(from -1deg, rgba(255,255,255,.18) 0 .5deg, transparent .6deg 15deg),
    conic-gradient(from 0deg, #20d7ff, #6f60ff, #d75bff, #6f60ff, #20d7ff);
  filter: drop-shadow(0 0 18px rgba(61, 172, 255, .72));
  animation: rqWheelAura 9s linear infinite;
}
.magic-wheel-stage::after {
  inset: -9px;
  border: 6px solid rgba(225, 235, 255, .94);
  background:
    radial-gradient(circle, transparent 0 83%, rgba(255,255,255,.11) 84%, transparent 86%);
  box-shadow:
    inset 0 0 22px rgba(35, 18, 93, .92),
    0 0 0 4px rgba(91, 52, 214, .96),
    0 0 0 8px rgba(42, 197, 255, .20),
    0 0 30px rgba(100, 79, 255, .65);
}
.magic-wheel-pointer {
  top: -24px;
  width: 68px;
  height: 60px;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #ffd0ff 42%, #a465ff 100%);
  clip-path: polygon(9% 0, 91% 0, 50% 100%);
  border: 0;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.9)) drop-shadow(0 0 16px rgba(225, 83, 255, .78)) drop-shadow(0 7px 4px rgba(23, 7, 63, .72));
}
.magic-wheel-pointer::after {
  content: "";
  position: absolute;
  inset: 7px 12px 15px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,160,247,.34));
  clip-path: inherit;
}
.magic-wheel-disc {
  inset: 9px;
  border: 2px solid rgba(255, 255, 255, .72);
  box-shadow:
    inset 0 0 48px rgba(2, 4, 25, .42),
    inset 0 0 0 2px rgba(255,255,255,.10),
    0 0 24px rgba(87, 92, 255, .48);
  will-change: transform;
  overflow: hidden;
}
.magic-wheel-disc::before {
  content: "";
  position: absolute;
  inset: 3.2%;
  z-index: 4;
  border-radius: 50%;
  border: 1px solid rgba(121, 229, 255, .34);
  box-shadow:
    inset 0 0 24px rgba(92, 66, 255, .20),
    0 0 0 9px rgba(8, 12, 48, .12);
  background:
    radial-gradient(circle, transparent 0 54%, rgba(255,255,255,.06) 55%, transparent 58%),
    radial-gradient(circle at 33% 20%, rgba(255,255,255,.15), transparent 24%);
  pointer-events: none;
}
.magic-wheel-disc::after {
  background:
    radial-gradient(circle, transparent 0 34%, rgba(93, 226, 255, .38) 34.5% 35.1%, rgba(9, 10, 42, .24) 35.6% 39.2%, transparent 39.8%),
    radial-gradient(circle, transparent 0 72%, rgba(255,255,255,.07) 72.4%, transparent 73%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.55) 0 .65deg, transparent .75deg 30deg),
    linear-gradient(180deg, rgba(255,255,255,.11), transparent 20%, transparent 79%, rgba(3,5,31,.16)),
    radial-gradient(circle at 34% 18%, rgba(255,255,255,.22), transparent 29%);
}
.magic-wheel-label {
  z-index: 8;
  transform: translate(-50%,-50%) rotate(var(--angle)) translateY(calc(var(--wheel-size) * -.385));
}
.magic-wheel-label b {
  display: block;
  width: clamp(102px, calc(var(--wheel-size) * .235), 148px);
  font-size: clamp(.72rem, 1.15vw, .96rem);
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 1000;
  text-align: center;
  color: #ffffff;
  transform: rotate(calc(90deg + var(--label-flip, 0deg)));
  transform-origin: center;
  -webkit-text-stroke: .8px rgba(20, 10, 54, .72);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.72));
  text-shadow:
    0 2px 4px rgba(0,0,0,.92),
    0 0 7px rgba(255,255,255,.60),
    0 0 13px rgba(101, 224, 255, .26);
}
.magic-wheel-center {
  width: calc(var(--wheel-size) * .285);
  height: calc(var(--wheel-size) * .285);
  border: 4px solid rgba(193, 228, 255, .96);
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 102, 255, .42), transparent 32%),
    radial-gradient(circle at 50% 52%, rgba(42, 211, 255, .18), transparent 58%),
    linear-gradient(155deg, #25156e, #080a2b 72%);
  box-shadow:
    0 0 0 5px rgba(70, 43, 153, .95),
    0 0 0 10px rgba(47, 218, 255, .48),
    0 0 38px rgba(206, 55, 255, .85),
    0 0 62px rgba(47, 218, 255, .16),
    inset 0 0 34px rgba(131, 77, 255, .76),
    inset 0 3px 0 rgba(255,255,255,.38);
  overflow: hidden;
}
.magic-wheel-center::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(88, 220, 255, .65);
  border-radius: 50%;
  animation: rqHubSpin 9s linear infinite;
}
.magic-wheel-center::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 70%);
  pointer-events: none;
}
.magic-wheel-center span,
.magic-wheel-center small { position: relative; z-index: 2; }
.magic-wheel-center span { font-size: clamp(1.35rem, 2.4vw, 2.05rem); letter-spacing: .035em; text-shadow: 0 0 13px rgba(255, 86, 255, .8); }
.magic-wheel-center small { color: #55e7ff; letter-spacing: .12em; }
.magic-wheel-center:hover:not(:disabled) { transform: scale(1.035); filter: brightness(1.16); }
.magic-wheel-center.is-spinning span { font-size: 0; }
.magic-wheel-center.is-spinning span::after { content: "SYNC"; font-size: clamp(1rem, 2vw, 1.5rem); letter-spacing: .13em; }
.magic-wheel-center.is-spinning small b { font-size: 0; }
.magic-wheel-center.is-spinning small b::after { content: "SPINNING"; font-size: .62rem; }
.magic-wheel-center:disabled { filter: none; opacity: .9; }
.magic-wheel-disc.is-spinning { filter: saturate(1.22) brightness(1.1); }
.magic-wheel-result {
  position: relative;
  isolation: isolate;
  width: min(620px, 86%);
  min-height: 64px;
  padding: 13px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(112, 207, 255, .56);
  border-radius: 16px;
  color: #eef3ff;
  background: linear-gradient(100deg, rgba(8, 11, 39, .96), rgba(24, 13, 74, .92), rgba(8, 11, 39, .96));
  box-shadow: inset 0 0 24px rgba(90, 56, 210, .18), 0 0 22px rgba(74, 104, 255, .22);
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 20px 100%, 0 50%);
  transition: opacity .22s ease, transform .22s ease, min-height .22s ease, padding .22s ease;
}
.magic-wheel-result::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(99, 222, 255, .14), transparent);
  transform: translateX(-120%);
  animation: rqStatusScan 3.4s ease-in-out infinite;
}
.magic-wheel-result.is-spinning {
  min-height: 0;
  height: 0;
  padding-block: 0;
  border-color: transparent;
  opacity: 0;
  transform: translateY(-10px) scale(.94);
  pointer-events: none;
}
.wheel-status-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #a96cff;
  border-radius: 50%;
  color: #fff;
  background: rgba(111, 51, 220, .62);
  box-shadow: 0 0 16px rgba(171, 79, 255, .65);
}
.magic-wheel-result.is-win {
  min-height: 88px;
  gap: 8px;
  flex-direction: column;
  border-color: rgba(255, 215, 80, .86);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 207, 56, .18), transparent 54%),
    linear-gradient(100deg, rgba(18, 9, 50, .98), rgba(57, 20, 91, .98), rgba(18, 9, 50, .98));
  box-shadow: inset 0 0 35px rgba(255, 183, 34, .13), 0 0 30px rgba(255, 103, 221, .36), 0 0 44px rgba(60, 184, 255, .19);
  animation: rqPrizePanelReveal .62s cubic-bezier(.16, 1.35, .42, 1) both;
}
.wheel-result-kicker {
  color: #9beeff;
  font-size: .68rem;
  font-weight: 1000;
  letter-spacing: .28em;
  animation: rqPrizeTextReveal .45s .12s both;
}
.wheel-result-value {
  color: #fff4a0 !important;
  font-size: clamp(1.65rem, 3.8vw, 2.9rem) !important;
  line-height: .9;
  letter-spacing: .035em;
  text-shadow: 0 0 9px #fff, 0 0 18px #ffbe32, 0 0 34px #ff4fd8;
  animation: rqPrizeValueReveal .85s .08s cubic-bezier(.17, 1.45, .34, 1) both;
}
.wheel-result-unit {
  color: #d9c8ff;
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .22em;
  animation: rqPrizeTextReveal .45s .24s both;
}
.wheel-result-burst {
  position: absolute;
  inset: -140%;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.2) 0 2deg, transparent 2deg 13deg);
  animation: rqPrizeBurst 1.1s ease-out both;
}
.magic-wheel-result.is-error { border-color: rgba(255, 91, 139, .8); color: #ffd7e2; }
.magic-wheel-result.is-error strong { color: #fff; font-size: .95rem; }

@keyframes rqWheelAura { to { transform: rotate(360deg); } }
@keyframes rqHubSpin { to { transform: rotate(-360deg); } }
@keyframes rqStatusScan { 0%, 30% { transform: translateX(-120%); } 70%, 100% { transform: translateX(120%); } }
@keyframes rqPrizePanelReveal { 0% { opacity: 0; transform: scale(.72) translateY(16px); filter: blur(7px); } 65% { opacity: 1; transform: scale(1.035); filter: blur(0); } 100% { transform: scale(1); } }
@keyframes rqPrizeValueReveal { 0% { opacity: 0; transform: scale(.25) rotateX(70deg); } 58% { opacity: 1; transform: scale(1.14) rotateX(0); } 100% { transform: scale(1); } }
@keyframes rqPrizeTextReveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rqPrizeBurst { from { opacity: .7; transform: scale(.2) rotate(0); } to { opacity: 0; transform: scale(1) rotate(42deg); } }

@media (max-width: 700px) {
  .magic-wheel-panel { padding: 24px 14px 26px; border-radius: 24px; }
  .magic-wheel-close { width: 40px; height: 40px; right: 17px; top: 16px; }
  .magic-wheel-heading h2 { margin-inline: 42px; font-size: clamp(2rem, 9vw, 3.15rem); }
  .magic-wheel-heading p { padding-inline: 22px; font-size: .78rem; }
  .magic-wheel-stage { --wheel-size: min(82vw, 410px, 54vh); margin-top: 15px; }
  .magic-wheel-stage::before { inset: -13px; }
  .magic-wheel-stage::after { inset: -5px; border-width: 5px; }
  .magic-wheel-pointer { top: -19px; width: 54px; height: 47px; }
  .magic-wheel-label b { width: clamp(90px, 24vw, 118px); font-size: clamp(.56rem, 2.15vw, .72rem); letter-spacing: .015em; }
  .magic-wheel-result { width: 94%; padding-inline: 23px; }
}
@media (max-height: 690px) and (min-width: 701px) {
  .magic-wheel-panel { padding-top: 18px; }
  .magic-wheel-heading h2 { font-size: 2.8rem; }
  .magic-wheel-heading p { margin-block: 4px; }
  .magic-wheel-stage { --wheel-size: min(470px, 68vh); }
}
@media (prefers-reduced-motion: reduce) {
  .magic-wheel-stage::before,
  .magic-wheel-center::before,
  .magic-wheel-result::before,
  .wheel-result-burst { animation: none !important; }
}
