/* Starfelt app. Ground, ink and accent match the channel banner and the inward-star mark. */
body.sf{margin:0;min-height:100dvh;color:#e8dcc8;background:
  radial-gradient(ellipse 80% 42% at 50% -8%,rgba(196,165,116,.18),transparent 60%),
  #12141a;font-family:Outfit,sans-serif;font-size:16px;line-height:1.5;font-variant-numeric:tabular-nums}
body.sf *{box-sizing:border-box}
body.sf h1,body.sf h2,body.sf .brand span,body.sf .price{font-family:Fraunces,serif;font-weight:560;letter-spacing:-.02em;line-height:1.15}
body.sf h1{font-size:clamp(34px,9vw,46px);margin:8px 0 12px}
body.sf h2{font-size:clamp(26px,6vw,32px);margin:0 0 8px}
body.sf p{margin:0 0 12px}
body.sf a{color:#c4a574}
body.sf button,body.sf input,body.sf select,body.sf textarea{font:inherit;color:inherit}
body.sf .shell{width:min(100%,480px);margin:0 auto;padding:12px 18px calc(28px + env(safe-area-inset-bottom))}
body.sf.in .shell{padding-bottom:calc(108px + env(safe-area-inset-bottom))}
body.sf .top{width:min(100%,480px);margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:calc(12px + env(safe-area-inset-top)) 18px 8px}
body.sf.in .top{position:sticky;top:0;z-index:4;background:#12141a}
body.sf .brand{display:flex;align-items:center;gap:10px;color:#e8dcc8;text-decoration:none;font-size:22px}
body.sf .brand img{width:36px;height:36px;border-radius:8px;display:block}
body.sf .avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#c4a574;color:#12141a;font-weight:600}
body.sf .eyebrow{color:#c4a574;font-size:13px;letter-spacing:.08em;text-transform:uppercase;margin:0 0 6px}
body.sf .lead{font-size:18px;color:#e8dcc8}
body.sf .fine,body.sf .status{color:#7a8f9c;font-size:14px}
body.sf .status:empty{display:none}
body.sf .card{background:#1b1e27;border:1px solid rgba(196,165,116,.28);border-radius:18px;padding:18px;box-shadow:0 16px 40px rgba(0,0,0,.28);margin:0 0 16px}
body.sf label{display:block;margin:12px 0 6px;font-size:14px;color:#7a8f9c}
body.sf .check{display:flex;align-items:center;gap:10px;min-height:48px;color:#e8dcc8}
body.sf input,body.sf select,body.sf textarea{width:100%;appearance:none;background:#12141a;border:1px solid rgba(232,220,200,.18);border-radius:14px;padding:12px 14px;min-height:48px}
body.sf .chip-toggle,body.sf .check{display:flex;align-items:center;gap:12px;min-height:48px;width:auto}
body.sf .chip-toggle input,body.sf .check input{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;overflow:hidden;clip:rect(0 0 0 0);appearance:none;border:0}
body.sf .switch{width:52px;height:30px;border-radius:999px;background:#2a2e38;position:relative;flex:0 0 auto;border:1px solid rgba(196,165,116,.45)}
body.sf .switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#e8dcc8;transition:transform 200ms ease}
body.sf .chip-toggle input:checked+.switch,body.sf .check input:checked+.switch{background:#c4a574}
body.sf .chip-toggle input:checked+.switch::after,body.sf .check input:checked+.switch::after{transform:translateX(22px);background:#12141a}
body.sf .chip-toggle input:focus-visible+.switch,body.sf .check input:focus-visible+.switch{outline:2px solid #c4a574;outline-offset:3px}
body.sf textarea{min-height:112px;resize:vertical}
body.sf [hidden]{display:none !important}
body.sf input:focus,body.sf select:focus,body.sf textarea:focus,body.sf button:focus-visible,body.sf a:focus-visible{outline:2px solid #c4a574;outline-offset:2px}
body.sf select{background-image:linear-gradient(45deg,transparent 50%,#c4a574 50%),linear-gradient(135deg,#c4a574 50%,transparent 50%);background-position:calc(100% - 18px) 22px,calc(100% - 12px) 22px;background-size:6px 6px,6px 6px;background-repeat:no-repeat}
body.sf .btn{appearance:none;width:100%;min-height:48px;border:0;border-radius:14px;background:#c4a574;color:#12141a;font-weight:600;margin-top:12px;cursor:pointer}
body.sf .btn.ghost{background:transparent;color:#e8dcc8;border:1px solid rgba(196,165,116,.45)}
body.sf .btn:disabled{opacity:.55}
body.sf .coordinates,.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.sf .panel{animation:rise 220ms ease-out}
body.sf .empty{text-align:center}
body.sf .empty .illu{width:160px;height:120px;margin:4px auto 12px;display:block}
body.sf .fan{display:flex;gap:10px;overflow:auto;padding:4px 0 12px;scroll-snap-type:x mandatory}
body.sf #latest .reading{position:relative;z-index:1;margin-top:-36px;background:rgba(18,20,26,.9);border:1px solid rgba(196,165,116,.35);border-radius:18px;padding:14px 16px}
body.sf.reading-open #ask,body.sf.reading-open #empty,body.sf.reading-open .member-actions,body.sf.reading-open #access,body.sf.reading-open #price,body.sf.reading-open #billing,body.sf.reading-open #skeleton,body.sf.reading-open .fan{display:none !important}
body.sf.reading-open #latest .reading{min-height:calc(100dvh - 168px);max-height:calc(100dvh - 168px);margin-top:0;overflow:auto}
body.sf.reading-open #latest .answer{font-size:22px;line-height:1.5}
body.sf .cardface{margin:0;flex:0 0 112px;scroll-snap-align:start;animation:deal 240ms ease-out both}
body.sf .cardface svg{width:112px;height:168px;display:block;filter:drop-shadow(0 10px 18px rgba(0,0,0,.35))}
body.sf .cardface figcaption{margin-top:6px;font-size:13px;text-align:center}
body.sf .reading{background:#1b1e27;border-radius:18px;padding:16px 16px 8px;margin:0 0 12px;border:1px solid rgba(196,165,116,.18)}
body.sf .reading h3{font-family:Outfit,sans-serif;font-size:15px;font-weight:600;color:#c4a574;margin:0 0 8px}
body.sf .answer{white-space:pre-wrap}
body.sf .answer strong{font-weight:700;color:#f3eadc}
body.sf .caret::after{content:'';display:inline-block;width:7px;height:1em;margin-left:2px;background:#c4a574;vertical-align:-2px;animation:blink 900ms steps(1) infinite}
body.sf .wheel svg{width:min(100%,320px);height:auto;display:block;margin:8px auto 12px}
body.sf #chart{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
body.sf button.chip{appearance:none;width:auto;margin:0;background:#12141a;border:1px solid rgba(232,220,200,.16);border-radius:999px;padding:8px 12px;font:inherit;font-size:14px;color:#e8dcc8;text-align:left;cursor:pointer;scroll-margin-top:72px;scroll-margin-bottom:88px}
body.sf .chip{background:#12141a;border:1px solid rgba(232,220,200,.16);border-radius:999px;padding:8px 12px;font-size:14px}
body.sf .chip.corrected{border-color:#c4a574;color:#c4a574}
body.sf .member-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 18px}
body.sf .member-actions #cancel{grid-column:1 / -1;text-align:center;padding:12px}
body.sf .tabs{display:none}
body.sf.in .tabs{display:grid;grid-template-columns:repeat(3,1fr);position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,480px);margin:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:rgba(18,20,26,.94);border-top:1px solid rgba(196,165,116,.28);backdrop-filter:blur(10px);z-index:4}
body.sf .tabs button{appearance:none;min-height:48px;border:0;border-radius:12px;background:transparent;color:#7a8f9c;font-weight:600}
body.sf .tabs button[aria-selected="true"]{background:#1b1e27;color:#c4a574}
body.sf .sheet{position:fixed;inset:0;background:rgba(8,9,12,.72);display:grid;align-items:end;justify-items:center;z-index:5;animation:rise 220ms ease-out}
body.sf .sheet[hidden]{display:none}
body.sf .sheet-card{width:min(100%,480px);background:#1b1e27;border-radius:20px 20px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));border:1px solid rgba(196,165,116,.28)}
body.sf .price{font-size:48px;margin:0 0 8px}
body.sf .price span{font-family:Outfit,sans-serif;font-size:18px;color:#7a8f9c}
body.sf .sheet-card ul{padding-left:18px;margin:0 0 8px}
body.sf .toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(92%,440px);background:#c4a574;color:#12141a;border-radius:14px;padding:12px 14px;font-weight:600;z-index:6;animation:rise 200ms ease-out}
body.sf .skeleton{display:grid;gap:8px;margin-bottom:12px}
body.sf .skeleton span{display:block;height:16px;border-radius:8px;background:linear-gradient(90deg,#1b1e27,#2a271f,#1b1e27);background-size:200% 100%;animation:shimmer 1.1s ease-out infinite}
body.sf .skeleton span:nth-child(2){width:86%}
body.sf .skeleton span:nth-child(3){width:64%}
body.sf .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes deal{from{opacity:0;transform:translateY(16px) rotate(-4deg)}to{opacity:1;transform:none}}
@keyframes shimmer{from{background-position:100% 0}to{background-position:-100% 0}}
@keyframes blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){
  body.sf .panel,body.sf .sheet,body.sf .toast,body.sf .cardface,body.sf .skeleton span,body.sf .caret::after{animation:none}
}
