body{font-family:Arial,Helvetica,sans-serif}

.sf-floating-window{
  border-width:1.1mm;
  background-size:auto,300% 300%;
  animation:
    sf-rise .72s cubic-bezier(.2,.8,.25,1) both,
    sf-float 2.4s ease-in-out .72s infinite,
    intro-rainbow-flow 3s linear infinite;
}

.index-content{
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:0 8mm 10mm;
  text-align:center;
}

.sf-still-logo{
  position:absolute;
  top:8%;
  width:34mm;
  height:auto;
  object-fit:contain;
  mix-blend-mode:screen;
  filter:drop-shadow(0 0 10px rgba(165,74,255,.55));
}

.sf-menu-wordmark{
  position:absolute;
  top:30%;
  left:50%;
  width:min(82%,92mm);
  max-height:47%;
  object-fit:contain;
  transform:translateX(-50%);
  filter:drop-shadow(0 0 8px rgba(255,154,28,.38));
}
.sf-intro-caption{position:absolute;top:67%;display:grid;gap:5px;color:#fff;text-align:center}.sf-intro-caption strong{color:#70ff72;font-size:15px}.sf-intro-caption span{color:#67dfff;font-size:13px;letter-spacing:.3px}

.rainbow-title{
  margin-top:20mm;
  display:grid;
  gap:8mm;
  font-size:clamp(25px,8vw,42px);
  font-weight:800;
  letter-spacing:3.5mm;
}

.rainbow-line{
  display:flex;
  justify-content:center;
  gap:2.2mm;
}

.rainbow-line span{
  animation:letter-plane 1.8s ease-in-out infinite alternate;
  text-shadow:0 0 5px currentColor;
}

.rainbow-line span:nth-child(1){color:#ff453a}
.rainbow-line span:nth-child(2){color:#ff9f0a;animation-delay:.08s}
.rainbow-line span:nth-child(3){color:#ffd60a;animation-delay:.16s}
.rainbow-line span:nth-child(4){color:#32d74b;animation-delay:.24s}
.rainbow-line span:nth-child(5){color:#40c8e0;animation-delay:.32s}
.rainbow-line:nth-child(2) span:nth-child(1){color:#0a84ff}
.rainbow-line:nth-child(2) span:nth-child(2){color:#5e5ce6}
.rainbow-line:nth-child(2) span:nth-child(3){color:#bf5af2}
.rainbow-line:nth-child(2) span:nth-child(4){color:#ff375f}
.rainbow-line:nth-child(2) span:nth-child(5){color:#ff9f0a}
.rainbow-line:nth-child(2) span:nth-child(6){color:#30d158}
.rainbow-line:nth-child(2) span:nth-child(7){color:#64d2ff}
.rainbow-line:nth-child(2) span:nth-child(8){color:#ff453a}

.sf-next-button img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 0 5px rgba(105,220,0,.9));
}

@keyframes letter-plane{
  from{transform:translateY(0);filter:brightness(.9)}
  to{transform:translateY(-1mm);filter:brightness(1.3)}
}

@keyframes intro-rainbow-flow{
  0%{background-position:0 0,0% 50%}
  50%{background-position:0 0,100% 50%}
  100%{background-position:0 0,0% 50%}
}

/* V110-01 — FINAL LOCKED INTRO PAGE */
.sf-floating-window{
  background:#020204!important;
  background-image:none!important;
  overflow:hidden;
  animation:introFrameColor 4.8s linear infinite!important;
}

body.sf-page::before{display:none!important}

.index-content{
  position:absolute;
  inset:0;
  padding:0;
  background:transparent;
  animation:introContentEnter .62s cubic-bezier(.2,.8,.25,1) both;
}

.sf-still-logo{
  top:7.5%;
  width:25mm;
  max-width:25%;
  background:transparent!important;
  box-shadow:none!important;
  mix-blend-mode:normal;
  filter:drop-shadow(0 0 7px rgba(111,66,255,.65));
  animation:introLogoFloat 2.7s ease-in-out infinite;
}

.sf-menu-wordmark{
  top:25%;
  width:min(70%,76mm);
  max-height:40%;
  object-fit:contain;
  filter:drop-shadow(0 0 8px rgba(255,76,184,.35));
  animation:introWordmarkFloat 3s ease-in-out .2s infinite;
}

.sf-intro-caption{
  top:62%;
  left:50%;
  width:88%;
  transform:translateX(-50%);
  gap:4px;
  line-height:1.25;
}

.sf-intro-caption strong{
  color:#73ff76;
  font-size:clamp(12px,3.6vw,16px);
  font-weight:700;
}

.sf-intro-caption span{
  color:#59e5ff;
  font-size:clamp(11px,3.2vw,14px);
  letter-spacing:.15px;
}

.sf-next-button{
  bottom:10%;
  width:16mm;
  height:16mm;
  opacity:1;
  transition:opacity .28s ease,filter .28s ease;
}

.sf-page.sf-leaving .sf-next-button{
  opacity:0;
  filter:blur(2px);
}

.sf-page.sf-leaving .index-content{
  animation:introContentExit .62s cubic-bezier(.7,0,.8,.3) both;
}

.sf-page.sf-leaving .sf-floating-window{
  transform:none!important;
  opacity:1!important;
  animation:introFrameColor 4.8s linear infinite!important;
}

@keyframes introFrameColor{
  0%,100%{border-color:#ff3cc8;box-shadow:0 0 10px #ff3cc866}
  25%{border-color:#ffd33e;box-shadow:0 0 10px #ffd33e66}
  50%{border-color:#55ff65;box-shadow:0 0 10px #55ff6566}
  75%{border-color:#25e7ff;box-shadow:0 0 10px #25e7ff66}
}

@keyframes introContentEnter{
  from{transform:translateY(14%);opacity:0}
  to{transform:translateY(0);opacity:1}
}

@keyframes introLogoFloat{
  50%{transform:translateY(-2mm);filter:drop-shadow(0 0 10px rgba(42,227,255,.75))}
}

@keyframes introWordmarkFloat{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(-2mm)}
}

@keyframes introContentExit{
  to{transform:translateY(-15%);opacity:0}
}

@media(max-height:650px){
  .sf-still-logo{top:6%;width:20mm}
  .sf-menu-wordmark{top:22%;width:58%;max-height:38%}
  .sf-intro-caption{top:60%}
  .sf-next-button{bottom:7%}
}

/* V112 — CONTINUOUS ANIMATED RAINBOW OUTER FRAME */
.sf-floating-window{
  border:2px solid transparent!important;
  background:
    linear-gradient(#020204,#020204) padding-box,
    linear-gradient(90deg,#ff2dcc,#ff7a28,#ffe43b,#55ff65,#21e6ff,#516cff,#b93cff,#ff2dcc) border-box!important;
  background-size:100% 100%,300% 100%!important;
  animation:introRainbowBorderFlow 4s linear infinite!important;
}

.sf-page.sf-leaving .sf-floating-window{
  animation:introRainbowBorderFlow 4s linear infinite!important;
}

@keyframes introRainbowBorderFlow{
  0%{background-position:0 0,0% 50%;box-shadow:0 0 10px rgba(35,230,255,.38)}
  50%{background-position:0 0,100% 50%;box-shadow:0 0 12px rgba(255,45,204,.42)}
  100%{background-position:0 0,200% 50%;box-shadow:0 0 10px rgba(85,255,101,.38)}
}

/* V113 — TRUE MULTICOLOUR RAINBOW AROUND THE COMPLETE FRAME */
@property --sf-frame-angle{
  syntax:"<angle>";
  inherits:false;
  initial-value:0deg;
}

.sf-floating-window{
  --sf-frame-angle:0deg;
  border:3px solid transparent!important;
  background:
    linear-gradient(#020204,#020204) padding-box,
    conic-gradient(
      from var(--sf-frame-angle),
      #ff2dcc 0deg,
      #ff762b 48deg,
      #ffe33b 94deg,
      #56ff65 142deg,
      #24e9ff 190deg,
      #536aff 238deg,
      #b63cff 288deg,
      #ff2dcc 360deg
    ) border-box!important;
  background-size:100% 100%!important;
  box-shadow:0 0 10px rgba(36,233,255,.42),0 0 16px rgba(255,45,204,.22)!important;
  animation:sfTrueRainbowFrame 4s linear infinite!important;
}

.sf-page.sf-leaving .sf-floating-window{
  animation:sfTrueRainbowFrame 4s linear infinite!important;
}

@keyframes sfTrueRainbowFrame{
  to{--sf-frame-angle:360deg}
}

/* V114 — FLOW 2/3/4 INSIDE THE SAME LOCKED APP SHELL */
.select-shell-content{
  position:absolute;
  inset:0;
  z-index:2;
  display:grid;
  grid-template-columns:17mm minmax(0,1fr);
  align-items:center;
  gap:3mm;
  padding:8mm 5mm;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(105%);
}

.shell-select-title{
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1.4mm;
  font:800 clamp(12px,4vw,18px)/1 Arial,sans-serif;
  letter-spacing:.7mm;
}

.shell-select-title span{
  writing-mode:vertical-rl;
  text-orientation:upright;
  text-shadow:0 0 6px currentColor;
}

.shell-select-title .shell-title-sf{color:#57dfff}
.shell-select-title span:nth-child(2){color:#ff43c7}
.shell-select-title span:nth-child(3){color:#65ff58}
.shell-select-title span:nth-child(4){color:#ffb62e}

.shell-theme-grid{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3mm;
}

.shell-theme-card{
  width:100%;
  padding:1mm;
  border:1mm solid transparent;
  border-radius:4mm;
  background:
    linear-gradient(#020204,#020204) padding-box,
    linear-gradient(110deg,#ff39c8,#ffbf35,#55ff60,#25e8ff,#745dff,#ff39c8) border-box;
  background-size:100% 100%,260% 100%;
  box-shadow:0 3mm 6mm rgba(0,0,0,.5);
  animation:shellCardRainbow 3s linear infinite,shellCardFloat 2.8s ease-in-out infinite;
}

.shell-theme-card:nth-child(2){animation-delay:-1s,.2s}
.shell-theme-card:nth-child(3){animation-delay:-2s,.4s}

.shell-theme-card img{
  display:block;
  width:100%;
  max-height:35mm;
  object-fit:contain;
  border-radius:3mm;
}

.shell-theme-card-vertical{width:100%}
.shell-theme-card-vertical img{height:min(45vh,65mm);max-height:65mm}
.shell-theme-card.selected{filter:brightness(1.2);transform:scale(1.025)}

.sf-show-select .index-content{
  animation:shellIntroExit .68s cubic-bezier(.7,0,.8,.3) both;
  pointer-events:none;
}

.sf-show-select .sf-next-button{
  animation:shellTickExit .32s ease both;
  pointer-events:none;
}

.sf-show-select .select-shell-content{
  visibility:visible;
  pointer-events:auto;
  animation:shellSelectEnter .72s cubic-bezier(.2,.8,.25,1) both;
}

.sf-select-leaving .select-shell-content{
  animation:shellSelectExit .62s cubic-bezier(.7,0,.8,.3) both;
  pointer-events:none;
}

@keyframes shellIntroExit{
  to{transform:translateY(-18%);opacity:0;visibility:hidden}
}

@keyframes shellTickExit{
  to{opacity:0;filter:blur(2px);transform:translateX(-50%) translateY(-5mm) scale(.8)}
}

@keyframes shellSelectEnter{
  from{transform:translateY(105%);opacity:0}
  to{transform:translateY(0);opacity:1}
}

@keyframes shellSelectExit{
  to{transform:translateY(-16%);opacity:0}
}

@keyframes shellCardRainbow{
  to{background-position:0 0,260% 0}
}

@keyframes shellCardFloat{
  50%{translate:0 -2mm}
}

@media(max-height:680px){
  .select-shell-content{padding:5mm 4mm;gap:2mm}
  .shell-theme-grid{gap:2mm}
  .shell-theme-card img{max-height:29mm}
  .shell-theme-card-vertical img{height:min(39vh,54mm);max-height:54mm}
}

/* V115 — REFERENCE-EXACT SELECT ALIGNMENT */
.select-shell-content{
  grid-template-columns:13mm minmax(0,1fr);
  gap:1.5mm;
  padding:6mm 5mm 6mm 4mm;
}

.shell-select-title{
  gap:0!important;
  font-family:Arial Black,Arial,sans-serif;
  font-size:clamp(12px,3.8vw,17px);
  line-height:.92;
  letter-spacing:.15mm;
}

.shell-select-title span{
  margin:0!important;
  padding:0!important;
  background:linear-gradient(180deg,#ff3fc8 5%,#ffb52c 28%,#62ff5d 52%,#24e8ff 75%,#9a54ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent!important;
  text-shadow:none;
  filter:drop-shadow(0 0 3px rgba(55,231,255,.6));
}

.shell-select-title .shell-title-sf{
  margin-bottom:.5mm!important;
}

.shell-theme-grid{
  height:100%;
  gap:1.5mm;
  align-content:center;
  justify-content:center;
}

.shell-theme-card{
  width:100%;
  padding:0!important;
  overflow:hidden;
  border-width:.75mm;
  border-radius:3mm;
  box-shadow:0 2mm 4mm rgba(0,0,0,.45);
}

.shell-theme-card img{
  width:100%;
  max-height:34mm;
  border-radius:2.1mm;
  object-fit:contain;
}

.shell-theme-card-vertical{
  width:100%;
}

.shell-theme-card-vertical img{
  width:100%;
  height:min(45vh,64mm);
  max-height:64mm;
  object-fit:contain;
}

@media(max-height:680px){
  .select-shell-content{grid-template-columns:12mm minmax(0,1fr);padding:4mm 4mm 4mm 3mm;gap:1mm}
  .shell-theme-grid{gap:1mm}
  .shell-theme-card img{max-height:29mm}
  .shell-theme-card-vertical img{height:min(39vh,53mm);max-height:53mm}
}

/* V116 — FRAME HUGS EACH IMAGE; NO BLACK INNER GAP */
.shell-theme-card:not(.shell-theme-card-vertical){
  width:min(100%,61mm);
}

.shell-theme-card:not(.shell-theme-card-vertical) img{
  display:block;
  width:100%;
  height:auto;
  max-height:none!important;
  object-fit:fill;
}

.shell-theme-card-vertical{
  width:min(100%,43mm);
}

.shell-theme-card-vertical img{
  display:block;
  width:100%;
  height:auto!important;
  max-height:none!important;
  object-fit:fill;
}

@media(max-height:680px){
  .shell-theme-card:not(.shell-theme-card-vertical){width:min(100%,52mm)}
  .shell-theme-card-vertical{width:min(100%,36mm)}
}
