/* RUINROLL · 10-intro-loading.css — Studio intro, title, first-run language picker, loaders, update banner, rotate hint.
   Generated from the consolidated stylesheet stack; rule order inside this file is cascade order. */
#langFirst {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 90% at 50% 110%,#1b2f6a 0%,#070b1e 60%,#03050f 100%);
  color: #f4f8ff;
  font-family: system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  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));
}
#langFirst .lfCard {
  width: min(760px,100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(10px,2.5vw,24px);
  align-items: center;
  background: #0a1636f0;
  border: 1.5px solid #6fd3ff;
  border-radius: 18px;
  padding: clamp(12px,3vh,22px);
}
#langFirst .lfDisco {
  width: clamp(70px,16vh,120px);
  height: auto;
  filter: drop-shadow(0 0 14px #ff7ae0aa);
}
#langFirst h1 {
  margin: 0 0 4px;
  font: 900 clamp(16px,4.4vh,24px)/1.15 system-ui;
  color: #ffe08a;
  text-transform: uppercase;
  letter-spacing: .03em;
}
#langFirst h1 small {
  display: block;
  font: 900 clamp(12px,3vh,16px) system-ui;
  color: #9fb6d9;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}
#langFirst .lfGrid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 10px;
}
#langFirst .lfGrid button {
  min-height: clamp(38px,9vh,52px);
  border-radius: 12px;
  border: 1.5px solid #3d5a93;
  background: linear-gradient(180deg,#1d5fae,#0d2f63);
  color: #fff;
  font: 900 clamp(13px,3.2vh,17px) system-ui,"SF Arabic","Geeza Pro","Noto Sans Arabic","Noto Sans Devanagari",sans-serif;
  padding: 0 8px;
}
#langFirst .lfGrid button.on {
  background: linear-gradient(180deg,#ffd75a,#f3a924);
  color: #3a2300;
  border-color: #ffe08a;
}
#langFirst .lfGo {
  margin-top: 12px;
  width: 100%;
  min-height: clamp(40px,10vh,54px);
  border-radius: 12px;
  border: 1.5px solid #ffe08a;
  background: linear-gradient(180deg,#ffd75a,#f3a924);
  color: #3a2300;
  font: 900 clamp(14px,3.6vh,19px) system-ui;
  letter-spacing: .04em;
}
@media (max-aspect-ratio:3/2) {
  #langFirst .lfCard {
    grid-template-columns: 1fr;
    text-align: center;
  }
  #langFirst .lfDisco {
    margin: 0 auto;
  }
}
.la-host {
  overflow: hidden;
}
.la-host>.la-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  gap: 7px;
  padding: 7px;
  background: #050308;
  animation: laIn .45s ease-out both;
}
.la-art .la-p::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: .22;
  background: radial-gradient(circle,#000 1.1px,transparent 1.6px) 0 0/7px 7px;
}
.la-art .la-p::before {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -30%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%,#fff6,transparent 60%);
  pointer-events: none;
}
.la-art .la-h.la-flip {
  transform: translateX(-50%) scaleX(-1);
  animation: laZoomF 7s ease-out both;
}
.la-art .la-h.la-big {
  height: 104%;
  bottom: -6%;
}
.la-l0 .la-A,
.la-l1 .la-A {
  grid-row: 1/3;
}
.la-l3 .la-A {
  grid-column: 1;
  grid-row: 1;
}
.la-l3 .la-myst {
  grid-column: 1;
  grid-row: 2;
}
.la-l3 .la-B {
  grid-column: 2;
  grid-row: 1/3;
}
.la-l2 .la-full .la-h.la-hero {
  height: 100%;
  left: 32%;
  bottom: -8%;
}
.la-l2 .la-full .la-h.la-back {
  height: 66%;
  left: 70%;
  bottom: 6%;
  opacity: .9;
  filter: brightness(.75) drop-shadow(6px 8px 0 #0009);
}
.la-art .la-logo b {
  display: block;
  font: 900 clamp(26px,9vh,64px)/.86 'Madball Display',system-ui,sans-serif !important;
  color: #fff !important;
  letter-spacing: .01em;
  -webkit-text-stroke: 2px #000;
  text-shadow: 4px 4px 0 #000,0 0 22px #ff4f8b88;
}
.la-art .la-logo b+b {
  color: #ffde59 !important;
  margin-left: .5em;
}
.la-art .la-logo small {
  margin-top: 6px;
  padding: 3px 8px;
  background: #000;
  color: #fff;
  font: 800 clamp(9px,2.2vh,13px)/1.1 system-ui,sans-serif;
  letter-spacing: .14em;
}
.la-art .la-tease i {
  font-style: normal;
  animation: laPulse2 1.2s steps(2) infinite;
}
.la-art .la-tease span {
  overflow: hidden;
  white-space: nowrap;
  animation: laType 1.6s steps(40) .3s both;
}
#arenaLoad.la-host,
#startupLoader.la-host {
  background: #050308 !important;
}
#arenaLoad.la-host>div:not(.la-art) {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 14px;
  width: min(300px,42vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid #000;
  background: #000c;
  text-align: left;
  backdrop-filter: blur(4px);
}
#arenaLoad.la-host>div:not(.la-art)>b {
  font-size: 13px;
  letter-spacing: .1em;
}
#arenaLoad.la-host .loadingTip {
  font-size: 11px;
  min-height: 0;
  margin: 4px 0;
}
#arenaLoad.la-host #arenaLoadText {
  font-size: 11px;
  margin: 2px 0;
}
#startupLoader.la-host {
  place-items: end;
}
#startupLoader.la-host .startupCard {
  position: relative;
  z-index: 5;
  margin: 14px;
  width: min(300px,42vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid #000;
  background: #000c !important;
  text-align: left;
}
#startupLoader.la-host .startupCard h1 {
  display: none;
}
#startupLoader.la-host .startupCard p {
  margin: 4px 0;
  font-size: 11px;
}
#startupLoader.la-host .startupTrack {
  height: 10px;
}
#startupLoader.la-host .startupPercent {
  margin-top: 4px;
  font-size: 12px;
}
#startupLoader.la-host .startupHint {
  display: none;
}
@media (orientation:portrait) {
  .la-l0 .la-A,
  .la-l1 .la-A {
    grid-row: 1;
    grid-column: 1/3;
  }
  .la-l3 .la-B {
    grid-row: 1;
    grid-column: 1/3;
  }
  .la-l3 .la-A {
    grid-row: 2;
    grid-column: 1;
  }
  .la-l3 .la-myst {
    grid-row: 2;
    grid-column: 2;
  }
}
@media (prefers-reduced-motion:reduce) {
  .la-art * {
    animation: none !important;
  }
}
#arenaLoad>.la-art,
#startupLoader>.la-art {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  max-width: none !important;
  padding: 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #050308 !important;
  text-align: left !important;
  margin: 0 !important;
}
.la-art .la-h.la-cast {
  height: 100%;
  bottom: -2%;
  filter: drop-shadow(8px 10px 0 #0008);
}
.la-art .la-h.la-cast.la-big {
  height: 112%;
  bottom: -6%;
}
.la-l2 .la-full .la-h.la-cast.la-hero {
  height: 112%;
  left: 38%;
  bottom: -8%;
}
.la-l2 .la-full .la-h.la-cast.la-back {
  height: 88%;
  left: 70%;
  bottom: -6%;
  filter: brightness(.8) drop-shadow(6px 8px 0 #0009);
}
#rotateHint {
  position: absolute;
  z-index: 55;
  inset: 0;
  display: none;
  background: radial-gradient(#244374,#07112b);
  text-align: center;
  align-content: center;
  padding: 24px;
}
#rotateHint>div {
  font-size: 70px;
}
#rotateHint h2 {
  color: #ffd268;
}
#rotateHint p {
  font-size: 15px;
  color: #c4e3ff;
}
@media (orientation:portrait) and (max-width:800px) {
  #rotateHint {
    display: block;
  }
}
#introScreen {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(90deg,#ff7b2714,#17155312 50%,#20c8ff14);
}
#introScreen.hidden {
  display: none !important;
}
#introScreen:before {
  content: '';
  position: absolute;
  left: 50%;
  top: -25%;
  height: 150%;
  width: 2px;
  transform: rotate(14deg);
  background: linear-gradient(transparent,#fff6d7a8,transparent);
  box-shadow: 0 0 35px 13px #fff6d72d;
}
.introSpot {
  position: absolute;
  top: 28%;
  font-weight: 1000;
  font-size: clamp(12px,2.1vw,30px);
  letter-spacing: .13em;
  text-shadow: 0 3px 3px #13224f,-1px -1px #fff9;
  animation: introFloat .55s ease-in-out infinite alternate;
}
#introScreen.launching #introNum {
  animation: goBoom .45s cubic-bezier(.4,0,0,1) forwards;
  color: #d6ff77;
  text-shadow: 0 0 35px #5dfcc8,3px 6px #1d4a32;
}
@media (max-height:440px) {
  .introSpot {
    top: 25%;
  }
}
#startupLoader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .35s;
}
#playtestFlag {
  position: fixed;
  z-index: 90;
  border: 1px solid #ffe07a;
  border-radius: 99px;
  background: #312817e8;
  color: #fff0ab;
  font: 900 11px system-ui;
  letter-spacing: .5px;
  pointer-events: none;
}
#playtestFlag.hidden {
  display: none !important;
}
#playtestFlag {
  top: auto !important;
  left: 8px !important;
  transform: none !important;
  font-size: 9px !important;
  padding: 3px 7px !important;
  opacity: .7;
}
#arenaLoad {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #08162bf5;
  display: grid;
  place-items: center;
  color: #e7f8ff;
}
#arenaLoad>div {
  width: min(470px,88vw);
  padding: 30px;
  border: 1px solid #70cde8;
  border-radius: 20px;
  background: #173456;
  text-align: center;
}
#arenaLoad b {
  color: #ffe28d;
  font-size: 22px;
}
#playtestFlag {
  bottom: 4px;
  max-width: 90%;
}
#startupLoader,
#arenaLoad {
  background: linear-gradient(90deg,#061328eb,#0816308c),url('../media/ce96a0b7e3af4a70db76.jpg') center/cover !important;
}
#startupLoader .startupCard {
  background: #081a32df;
  backdrop-filter: blur(8px);
}
#madball-web-update {
  position: fixed;
  z-index: 10010;
  right: max(12px,env(safe-area-inset-right));
  bottom: max(12px,env(safe-area-inset-bottom));
  width: min(400px,calc(100% - 24px));
  color: #fff9d4;
  background: #081b38f5;
  border: 2px solid #ffda69;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 30px #000b;
  font: 700 13px/1.4 system-ui,Arial,sans-serif;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
#startupLoader {
  background: linear-gradient(#0a142866,#0a1428d0),url(../ui-assets/loading-cover.webp) center/cover no-repeat,#090e27 !important;
}
#studioIntro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #000;
  overflow: hidden;
  transition: opacity .45s ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#studioIntro.bye {
  opacity: 0;
  pointer-events: none;
}
#studioIntroAmb {
  position: absolute;
  left: -12%;
  top: -12%;
  width: 124%;
  height: 124%;
  filter: blur(26px) saturate(1.3) brightness(.5);
  opacity: 0;
  transition: opacity .7s ease;
  transform: translateZ(0);
  pointer-events: none;
}
#studioIntro.on #studioIntroAmb {
  opacity: 1;
}
#studioIntroV {
  position: absolute;
  left: 50%;
  top: 50%;
  --s: min(100vw,100vh);
  width: var(--s);
  height: var(--s);
  transform: translate(-50%,-50%);
  object-fit: contain;
  background: transparent;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%);
  mask-image: linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%);
}
@supports (height:100dvh) {
  #studioIntroV {
    --s: min(100vw,100dvh);
  }
}
@media (orientation:portrait) {
  #studioIntroV {
    -webkit-mask-image: linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%);
    mask-image: linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%);
  }
}
#studioIntroTap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  margin: 0;
  padding: 0;
  color: #ffe9b8;
  cursor: pointer;
  opacity: 0;
  transition: opacity .5s ease;
  background: radial-gradient(ellipse at 50% 50%,#0000 0,#000c 70%),url('../media/studio/wild-april-poster.jpg') center/contain no-repeat #000;
}
#studioIntroTap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: .55;
}
#studioIntroTap[hidden] {
  display: none;
}
#studioIntroTap.show {
  opacity: 1;
}
#studioIntroTap b {
  position: relative;
  margin-top: auto;
  margin-bottom: max(9vh,calc(env(safe-area-inset-bottom) + 28px));
  font: 800 clamp(13px,2.4vmin,18px)/1 system-ui,-apple-system,sans-serif;
  letter-spacing: .42em;
  text-indent: .42em;
  color: #ffe2a0;
  text-shadow: 0 0 14px #ffb54a99;
  animation: sitPulse 1.8s ease-in-out infinite;
}
html[dir=rtl] #studioIntroTap b,
#studioIntroTap b.ar {
  letter-spacing: 0;
  text-indent: 0;
  font-size: clamp(15px,2.8vmin,21px);
}
@media (prefers-reduced-motion:reduce) {
  #studioIntroTap b {
    animation: none;
  }
}
.introWpn {
  position: absolute;
  bottom: calc(13% + clamp(74px,18.5vh,150px));
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
  background: #0b1630e6;
  border: 2px solid var(--wc,#fff);
  box-shadow: 0 0 16px var(--wc,#fff),inset 0 0 10px #ffffff22;
  font: 900 12px/1 system-ui,sans-serif;
  color: #fff;
  letter-spacing: .05em;
  animation: introWpnIn .5s .35s both;
}
@media (max-height:420px) {
  .introWpn {
    bottom: calc(8% + clamp(64px,18vh,90px));
    font-size: 11px;
  }
}
@media (orientation:portrait) and (pointer:coarse) and (max-width:1100px) {
  #rotateHint {
    display: block;
  }
}
#rotateHint h2[lang=ar] {
  margin-top: 18px;
}
html body#rr-app.rr-ui #langFirst {
  background: linear-gradient(#061124bb,#061124bb),url('../ui-assets/bg-castle.webp') center/cover !important;
}
html body#rr-app.rr-ui #langFirst .lfCard {
  width: min(1320px,94vw) !important;
  grid-template-columns: 24% 1fr !important;
  gap: clamp(12px,3vw,40px) !important;
  padding: clamp(14px,3vh,32px) !important;
  position: relative;
}
html body#rr-app.rr-ui #langFirst .lfDisco {
  width: 100% !important;
  max-width: none !important;
  object-fit: contain;
}
html body#rr-app.rr-ui #langFirst h1 {
  color: var(--mc-paper) !important;
  font-size: clamp(23px,5vh,44px) !important;
}
html body#rr-app.rr-ui #langFirst .lfGrid button {
  min-height: clamp(44px,9vh,80px) !important;
  font-size: clamp(13px,2.8vh,24px) !important;
}
html body#rr-app.rr-ui #langFirst .lfGrid button.on::before {
  content: '✓ ';
  color: #352403;
}
html body#rr-app.rr-ui #langFirst .lfGo {
  min-height: clamp(44px,9vh,76px) !important;
  font-size: clamp(18px,4vh,30px) !important;
}
html body#rr-app.rr-ui .la-logo small {
  font-family: var(--mc-text) !important;
  color: #fff5df !important;
}
html body#rr-app.rr-ui #langFirst .rr-onboarding-brand {
  position: absolute;
  left: 4vw;
  top: 3vh;
  width: 24vw;
  height: 11vh;
  object-fit: contain;
  object-position: left center;
}
html body#rr-app.rr-ui #langFirst .lfDisco {
  height: clamp(90px,30vh,270px) !important;
}
html body#rr-app.rr-ui #langFirst [lang=hi] {
  font-family: 'Madball Devanagari',sans-serif !important;
}
html body#rr-app.rr-ui #langFirst [lang=ar] {
  font-family: 'Madball Arabic',sans-serif !important;
}
html body .la-host-rr {
  background: #050814 !important;
  overflow: hidden !important;
}
html body .la-host-rr>.la-art.la-rr {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #050814 !important;
  width: auto !important;
  max-width: none !important;
  z-index: 0;
  animation: rrIn .35s ease-out both;
}
.la-rr {
  --foot: max(11vh,46px);
}
.la-rr .rr-foot b {
  font: 400 clamp(16px,4.2vh,26px)/1 'Madball Display',system-ui,sans-serif;
  color: #26dbf0;
}
.la-rr .rr-foot span {
  flex: 0 1 auto;
  max-width: 42%;
  color: #fff;
  font: 800 clamp(11px,2.8vh,16px)/1.15 system-ui,sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.la-rr .rr-foot em {
  font: 400 clamp(13px,3.4vh,20px)/1 'Madball Display',system-ui,sans-serif;
  font-style: normal;
  color: #26dbf0;
}
html.lang-ar .la-rr .rr-foot {
  direction: rtl;
}
html body #arenaLoad.la-host-rr>div:not(.la-art),
html body #startupLoader.la-host-rr .startupCard {
  opacity: 0 !important;
  pointer-events: none !important;
}
html body #arenaLoad.la-host-rr:has(#arenaLoadBack:not(.hidden))>div:not(.la-art) {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 5;
}
#langFirst {
  animation: rrLfIn .45s ease-out both;
}
#langFirst.lfBye {
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
html body#rr-app #langFirst {
  background: var(--u-panel) !important;
}
html body#rr-app #langFirst h1 small {
  color: var(--u-txt) !important;
  -webkit-text-fill-color: var(--u-txt);
  text-shadow: none !important;
}
@media (orientation:portrait) {
  html body#rr-app.rr-ui #langFirst {
    padding: 0 16px;
    box-sizing: border-box;
  }
  html body#rr-app.rr-ui #langFirst .lfCard {
    width: 100% !important;
    max-width: 520px;
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
    gap: 10px !important;
    padding: 16px 14px !important;
  }
  html body#rr-app.rr-ui #langFirst .lfDisco {
    height: clamp(70px,14vh,120px) !important;
    margin: 0 auto;
  }
  html body#rr-app.rr-ui #langFirst .lfCard>div {
    width: 100%;
  }
  html body#rr-app.rr-ui #langFirst h1 {
    font-size: clamp(18px,5.4vw,26px);
  }
  html body#rr-app.rr-ui #langFirst .lfGrid {
    grid-template-columns: repeat(2,1fr) !important;
    gap: 8px;
  }
  html body#rr-app.rr-ui #langFirst .lfGrid button {
    min-height: 46px;
    font-size: clamp(13px,3.8vw,16px);
    white-space: normal;
  }
  html body#rr-app.rr-ui #langFirst .rr-language-guide {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
  }
  html body#rr-app.rr-ui #langFirst .rr-language-bubble {
    max-width: 200px;
    font-size: 13px;
  }
  html body#rr-app.rr-ui #langFirst .rr-onboarding-brand {
    position: absolute;
    left: 50%;
    top: 3vh;
    transform: translateX(-50%);
    width: 50vw;
    height: 8vh;
    margin: 0;
  }
  html body#rr-app.rr-ui #langFirst .lfCard {
    margin-top: 12vh;
  }
  html body#rr-app #rotateHint {
    position: fixed;
    z-index: 150000;
  }
  html body#rr-app #langFirst {
    z-index: 200000;
  }
}
@media (max-height:440px) {
  #madball-web-update {
    max-width: min(420px,60vw) !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}
