.felmo-category{
  position:relative;
  isolation:isolate;
}

.felmo-card-shell{
  --felmo-accent:#8b5cf6;
  position:relative;
  overflow:hidden;
  padding:0;
  border:1px solid rgba(167,139,250,.28);
  background:
    radial-gradient(circle at 82% 8%,rgba(139,92,246,.24),transparent 38%),
    linear-gradient(145deg,rgba(28,25,39,.98),rgba(13,12,18,.98));
  box-shadow:0 18px 48px rgba(6,5,12,.28),inset 0 1px rgba(255,255,255,.04);
}

.felmo-card-shell > .message{
  position:relative;
  z-index:2;
  margin:0 16px 16px;
}

.felmo-card-shell::before{
  content:"";
  position:absolute;
  width:210px;
  height:210px;
  right:-76px;
  top:-92px;
  border:1px solid rgba(184,166,255,.12);
  border-radius:50%;
  box-shadow:0 0 0 34px rgba(139,92,246,.035),0 0 0 68px rgba(139,92,246,.025);
  pointer-events:none;
}

.felmo-card-shell.is-locked{
  --felmo-accent:#9b8aad;
  border-color:rgba(181,164,199,.2);
}

.felmo-card-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(128px,42%);
  align-items:center;
  gap:10px;
  min-height:262px;
}

.felmo-card-copy{
  padding:20px 0 20px 20px;
  min-width:0;
}

.felmo-kicker{
  display:flex;
  align-items:center;
  gap:7px;
  color:#c4b5fd;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.felmo-kicker-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--felmo-accent);
  box-shadow:0 0 14px var(--felmo-accent);
}

.felmo-card-title{
  margin:9px 0 5px;
  color:#fff;
  font-size:clamp(24px,7vw,34px);
  line-height:1;
  letter-spacing:-.035em;
}

.felmo-card-subtitle{
  margin:0;
  color:rgba(242,239,250,.74);
  font-size:14px;
  line-height:1.45;
}

.felmo-lock-chip,
.felmo-mood-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  margin-top:13px;
  padding:5px 10px;
  border:1px solid rgba(196,181,253,.2);
  border-radius:999px;
  background:rgba(139,92,246,.1);
  color:#ddd6fe;
  font-size:11px;
  font-weight:850;
}

.felmo-progress-wrap{
  margin-top:16px;
}

.felmo-progress-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:7px;
  color:rgba(242,239,250,.72);
  font-size:11px;
  font-weight:750;
}

.felmo-progress{
  position:relative;
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  box-shadow:inset 0 1px 3px rgba(0,0,0,.4);
}

.felmo-progress > span{
  display:block;
  width:var(--felmo-progress,0%);
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#6d28d9,#a78bfa 72%,#ddd6fe);
  box-shadow:0 0 16px rgba(167,139,250,.46);
  transition:width .48s cubic-bezier(.22,1,.36,1);
}

.felmo-card-action{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:44px;
  margin-top:15px;
  padding:10px 15px;
  border:0;
  border-radius:13px;
  background:linear-gradient(135deg,#7c3aed,#9f7aea);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:900;
  box-shadow:0 10px 24px rgba(124,58,237,.25);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.felmo-card-action:active{transform:translateY(1px)}
.felmo-card-action[disabled]{opacity:.55;cursor:default;box-shadow:none}

.felmo-rig-stage{
  position:relative;
  align-self:end;
  display:flex;
  justify-content:center;
  align-items:flex-end;
  min-width:0;
  height:255px;
  margin-right:-5px;
}

.felmo-rig-stage felmo-mascot{
  --felmo-size:min(225px,46vw);
  transform:translateY(14px);
}

.is-locked .felmo-rig-stage::after{
  content:"";
  position:absolute;
  inset:10% 5% 0;
  z-index:2;
  background:linear-gradient(180deg,transparent 42%,rgba(11,10,16,.72) 86%);
  pointer-events:none;
}

.is-locked .felmo-rig-stage felmo-mascot{
  filter:grayscale(.58) brightness(.7);
  opacity:.84;
}

.felmo-rhythm-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:12px;
}

.felmo-rhythm-stat{
  min-width:0;
  padding:16px;
  border:1px solid rgba(255,255,255,.065);
  border-radius:17px;
  background:rgba(255,255,255,.035);
}

.felmo-rhythm-stat > span{
  display:block;
  color:var(--muted,#a8a3b4);
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.felmo-rhythm-stat strong{
  display:block;
  margin-top:5px;
  color:#fff;
  font-size:27px;
  letter-spacing:-.04em;
}

.felmo-rhythm-stat strong span{
  display:inline;
  color:inherit;
  font:inherit;
  font-weight:inherit;
  letter-spacing:inherit;
  text-transform:none;
}

.felmo-context-note{
  margin-top:12px;
  padding:13px 14px;
  border-left:3px solid #8b5cf6;
  border-radius:0 12px 12px 0;
  background:rgba(139,92,246,.08);
  color:rgba(242,239,250,.78);
  font-size:13px;
  line-height:1.45;
}

.felmo-intro-overlay{
  position:fixed;
  inset:0;
  z-index:410;
  display:grid;
  place-items:center;
  padding:max(18px,env(safe-area-inset-top)) 16px max(18px,env(safe-area-inset-bottom));
  overflow-y:auto;
  overscroll-behavior:contain;
  background:
    radial-gradient(circle at 50% 24%,rgba(124,58,237,.34),transparent 35%),
    rgba(5,4,9,.94);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.felmo-intro-overlay.hidden{display:none}

.felmo-intro-panel{
  position:relative;
  width:min(100%,440px);
  min-height:min(690px,calc(100dvh - 36px));
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
  border:1px solid rgba(196,181,253,.22);
  border-radius:28px;
  background:
    radial-gradient(circle at 50% 22%,rgba(139,92,246,.21),transparent 43%),
    linear-gradient(180deg,#181522,#0d0c13 78%);
  box-shadow:0 30px 90px rgba(0,0,0,.55),inset 0 1px rgba(255,255,255,.06);
}

.felmo-intro-panel::before{
  content:"";
  position:absolute;
  inset:-30% -40% auto;
  height:65%;
  background:conic-gradient(from 210deg,transparent,rgba(167,139,250,.13),transparent 34%);
  animation:felmoIntroAura 9s linear infinite;
  pointer-events:none;
}

.felmo-intro-visual{
  position:relative;
  z-index:1;
  height:min(385px,49dvh);
  display:flex;
  justify-content:center;
  align-items:flex-end;
  padding-top:16px;
}

.felmo-intro-visual felmo-mascot{
  --felmo-size:min(300px,75vw);
  transform:translateY(20px);
}

.felmo-intro-copy{
  position:relative;
  z-index:2;
  padding:0 24px 24px;
  text-align:center;
}

.felmo-intro-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 11px;
  border:1px solid rgba(196,181,253,.24);
  border-radius:999px;
  background:rgba(139,92,246,.12);
  color:#ddd6fe;
  font-size:10px;
  font-weight:950;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.felmo-intro-title{
  margin:12px 0 7px;
  color:#fff;
  font-size:clamp(29px,9vw,42px);
  line-height:1;
  letter-spacing:-.045em;
}

.felmo-intro-text{
  min-height:44px;
  margin:0 auto;
  max-width:340px;
  color:rgba(242,239,250,.76);
  font-size:15px;
  line-height:1.5;
}

.felmo-intro-dots{
  display:flex;
  justify-content:center;
  gap:7px;
  margin:18px 0 15px;
}

.felmo-intro-dot{
  width:7px;
  height:7px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  transition:width .3s ease,background .3s ease;
}

.felmo-intro-dot.active{
  width:23px;
  background:#a78bfa;
}

.felmo-intro-button{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:15px;
  background:linear-gradient(135deg,#7c3aed,#a78bfa);
  color:#fff;
  font:inherit;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 13px 30px rgba(124,58,237,.32);
}

body.felmo-intro-open{overflow:hidden;touch-action:none}

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

@media (max-width:600px){
  .felmo-intro-overlay{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}

@media (max-width:390px){
  .felmo-card-grid{grid-template-columns:minmax(0,1fr) 124px;min-height:245px}
  .felmo-card-copy{padding:18px 0 18px 16px}
  .felmo-card-title{font-size:25px}
  .felmo-card-subtitle{font-size:12px}
  .felmo-rig-stage{height:225px;margin-right:-18px}
  .felmo-rig-stage felmo-mascot{--felmo-size:178px}
  .felmo-card-action{padding-inline:12px;font-size:12px}
  .felmo-intro-panel{min-height:calc(100dvh - 28px);border-radius:24px}
  .felmo-intro-visual{height:44dvh;min-height:270px}
  .felmo-intro-copy{padding:0 18px 19px}
}

@media (max-width:340px){
  .felmo-card-grid{grid-template-columns:1fr;min-height:0}
  .felmo-card-copy{padding:18px 18px 0}
  .felmo-rig-stage{height:190px;margin:0}
  .felmo-rig-stage felmo-mascot{--felmo-size:178px;transform:translateY(20px)}
  .felmo-rhythm-stats{gap:8px}
  .felmo-rhythm-stat{padding:13px}
}

@media (prefers-reduced-motion:reduce){
  .felmo-progress > span,
  .felmo-intro-dot,
  .felmo-card-action{transition:none!important}
  .felmo-intro-panel::before{animation:none!important}
}
