.fdf-app{position:relative;overflow:hidden;margin:28px 0;border:1px solid rgba(129,92,246,.18);border-radius:22px;background:linear-gradient(145deg,#fff 0%,#fff9fd 48%,#f7f4ff 100%);box-shadow:0 14px 40px rgba(83,55,128,.10);color:#332b3f}
.fdf-app *{box-sizing:border-box}
.fdf-inner{position:relative;z-index:2;padding:28px}
.fdf-glow{position:absolute;border-radius:999px;filter:blur(4px);opacity:.55;pointer-events:none}
.fdf-glow-a{width:180px;height:180px;right:-70px;top:-80px;background:radial-gradient(circle,#ffd9ec 0%,rgba(255,217,236,0) 70%)}
.fdf-glow-b{width:160px;height:160px;left:-80px;bottom:-90px;background:radial-gradient(circle,#ddd2ff 0%,rgba(221,210,255,0) 70%)}
.fdf-kicker{margin:0 0 7px!important;font-size:11px!important;letter-spacing:.18em;font-weight:700;color:#9368b7}
.fdf-title{margin:0!important;font-size:clamp(22px,4.8vw,30px)!important;line-height:1.35!important;color:#352a43}
.fdf-lead{margin:10px 0 20px!important;font-size:14px!important;line-height:1.8!important;color:#62566e}
.fdf-form{padding:18px;border:1px solid rgba(129,92,246,.14);border-radius:16px;background:rgba(255,255,255,.86)}
.fdf-form-center{text-align:center}
.fdf-label{display:block;margin-bottom:8px;font-size:13px;font-weight:700;color:#4b3d59}
.fdf-control-row{display:flex;gap:10px;align-items:stretch}
.fdf-input,.fdf-select{width:100%;min-height:48px;padding:10px 13px;border:1px solid #d9cfe3!important;border-radius:12px!important;background:#fff!important;color:#332b3f!important;font:inherit!important;box-shadow:none!important;outline:none}
.fdf-input:focus,.fdf-select:focus{border-color:#a675d0!important;box-shadow:0 0 0 3px rgba(166,117,208,.12)!important}
.fdf-button{flex:0 0 auto;min-height:48px;padding:0 18px;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#9d6bd0,#e06da9)!important;color:#fff!important;font-weight:700!important;font-size:14px!important;line-height:1!important;cursor:pointer;box-shadow:0 8px 18px rgba(171,87,158,.20);transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease}
.fdf-button:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(171,87,158,.26)}
.fdf-button:active{transform:translateY(0)}
.fdf-button-wide{min-width:min(100%,320px);padding:0 28px}
.fdf-helper{margin:8px 2px 0!important;font-size:11px!important;line-height:1.6!important;color:#8a7b95}
.fdf-result{margin-top:18px}
.fdf-note{margin:16px 0 0!important;padding-top:14px;border-top:1px dashed #ddd2e5;font-size:11px!important;line-height:1.7!important;color:#8a7b95}
.fdf-error{padding:13px 14px;border-radius:12px;background:#fff0f4;color:#9e365a;font-size:13px;font-weight:700}
.fdf-summary{padding:18px;border-radius:16px;background:linear-gradient(135deg,rgba(239,230,255,.78),rgba(255,230,242,.78));border:1px solid rgba(161,116,198,.15)}
.fdf-summary-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.fdf-summary-label{margin:0!important;font-size:12px!important;color:#765c87}
.fdf-summary-title{margin:3px 0 0!important;font-size:22px!important;line-height:1.4!important;color:#362a43}
.fdf-score-badge{display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:74px;height:74px;border-radius:50%;background:#fff;box-shadow:0 8px 22px rgba(83,55,128,.09)}
.fdf-score-badge strong{font-size:24px;line-height:1;color:#a04fa1}
.fdf-score-badge span{margin-top:4px;font-size:10px;color:#8a7b95}
.fdf-message{margin:14px 0 0!important;font-size:14px!important;line-height:1.85!important;color:#51445f}
.fdf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.fdf-card{padding:13px;border:1px solid rgba(130,101,154,.13);border-radius:13px;background:#fff}
.fdf-card-label{display:block;margin-bottom:5px;font-size:11px;color:#8e7a99}
.fdf-card-value{font-size:14px;font-weight:700;color:#3e3249;line-height:1.55}
.fdf-stars{letter-spacing:.08em;color:#b35ba8;font-size:14px;white-space:nowrap}
.fdf-tip{margin-top:12px;padding:13px 14px;border-radius:13px;background:#fff;border-left:4px solid #c793d8;font-size:13px;line-height:1.75;color:#55475f}
.fdf-ranking{display:grid;gap:8px}
.fdf-rank-row{display:grid;grid-template-columns:46px 1fr auto;gap:10px;align-items:center;padding:12px 13px;border-radius:13px;background:#fff;border:1px solid rgba(130,101,154,.13)}
.fdf-rank-row.is-top{background:linear-gradient(135deg,#fff8d9,#fff0f7);border-color:rgba(202,157,69,.22)}
.fdf-rank-num{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#f2ecf8;color:#6d527d;font-size:12px;font-weight:800}
.fdf-rank-row.is-top .fdf-rank-num{background:#fff0b9;color:#806118}
.fdf-rank-main strong{display:block;font-size:14px;color:#3c3047}
.fdf-rank-main span{display:block;margin-top:2px;font-size:11px;line-height:1.5;color:#8d7f95}
.fdf-rank-score{font-size:12px;font-weight:800;color:#a555a5}
.fdf-lucky-color{display:inline-flex;align-items:center;gap:7px}
.fdf-color-dot{width:13px;height:13px;border-radius:50%;border:1px solid rgba(0,0,0,.08);box-shadow:inset 0 0 0 2px rgba(255,255,255,.5)}
@media (max-width:640px){.fdf-inner{padding:21px 16px}.fdf-control-row{display:grid;grid-template-columns:1fr}.fdf-button{width:100%}.fdf-grid{grid-template-columns:1fr}.fdf-summary-head{align-items:center}.fdf-summary-title{font-size:20px!important}.fdf-rank-row{grid-template-columns:42px 1fr}.fdf-rank-score{grid-column:2;font-size:11px;margin-top:-5px}.fdf-score-badge{min-width:66px;height:66px}.fdf-score-badge strong{font-size:21px}}
