:root{color:#f7efdc;background:#10100c;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:geometricPrecision;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 18% 12%,rgba(231,255,85,.14),transparent 28%),linear-gradient(135deg,rgba(255,113,91,.08),transparent 32%),#10100c}button,textarea,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}.app-shell{position:relative;min-height:100vh;padding:26px;overflow:hidden}.app-shell:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:.18;background-image:radial-gradient(rgba(247,239,220,.22) .7px,transparent .7px);background-size:5px 5px;mix-blend-mode:screen}.topbar{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px;max-width:1380px;margin:0 auto 28px}.brand-lockup{display:flex;align-items:center;gap:14px}.brand-mark{display:grid;width:52px;height:52px;place-items:center;color:#10100c;background:#e7ff55;border:2px solid #10100c;border-radius:16px;box-shadow:6px 6px #ff715b}h1,h2,p{margin:0}.brand-lockup h1{color:#fff8e5;font-size:clamp(1.45rem,3vw,2.1rem);font-weight:800;letter-spacing:0}.brand-lockup p{margin-top:4px;color:#f7efdcad;font-size:.96rem}.connect-button,.connected-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;gap:9px;padding:0 18px;color:#10100c;text-decoration:none;background:#f7efdc;border:2px solid #10100c;border-radius:12px;box-shadow:5px 5px #e7ff55;font-size:.92rem;font-weight:800;cursor:pointer}.connected-button{color:#e7ff55;background:#e7ff5514;border-color:#e7ff5573;box-shadow:none}.workspace{position:relative;z-index:1;display:grid;grid-template-columns:minmax(330px,.86fr) minmax(0,1.52fr);gap:24px;max-width:1380px;margin:0 auto}.receipt-panel,.result-panel{min-height:710px}.receipt-panel{display:flex;flex-direction:column;gap:16px;padding:18px;background:#f7efdc0f;border:1px solid rgba(247,239,220,.18);border-radius:24px}.receipt-paper{min-height:430px;padding:25px 22px;color:#19150f;background:linear-gradient(90deg,transparent 0 8px,rgba(16,16,12,.04) 8px 9px,transparent 9px 18px),#f7efdc;border-radius:6px 6px 22px 22px;clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),96% 100%,92% calc(100% - 14px),88% 100%,84% calc(100% - 14px),80% 100%,76% calc(100% - 14px),72% 100%,68% calc(100% - 14px),64% 100%,60% calc(100% - 14px),56% 100%,52% calc(100% - 14px),48% 100%,44% calc(100% - 14px),40% 100%,36% calc(100% - 14px),32% 100%,28% calc(100% - 14px),24% 100%,20% calc(100% - 14px),16% 100%,12% calc(100% - 14px),8% 100%,4% calc(100% - 14px),0 100%)}.receipt-header,.receipt-total{display:flex;justify-content:space-between;gap:18px;color:#19150fad;font-family:JetBrains Mono,monospace;font-size:.77rem;font-weight:700;text-transform:uppercase}.receipt-title{margin:26px 0 14px;font-family:"Instrument Serif",Georgia,serif;font-size:clamp(2.5rem,5vw,4.3rem);line-height:.9}textarea{display:block;width:100%;min-height:235px;resize:vertical;padding:16px 0;color:#19150f;background:transparent;border:0;border-top:2px dashed rgba(25,21,15,.28);border-bottom:2px dashed rgba(25,21,15,.28);outline:0;font-family:JetBrains Mono,monospace;font-size:.98rem;line-height:1.62}.receipt-total{margin-top:18px}.tone-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tone,.result-actions button,.manual-key-row button{min-height:42px;color:#f7efdcc7;background:#f7efdc0f;border:1px solid rgba(247,239,220,.18);border-radius:12px;font-size:.83rem;font-weight:800;cursor:pointer}.tone.active{color:#10100c;background:#e7ff55;border-color:#e7ff55}.manual-key{padding:14px;border:1px solid rgba(255,113,91,.34);border-radius:16px;background:#ff715b14}.manual-key label{display:block;margin-bottom:9px;color:#ffb2a4;font-size:.8rem;font-weight:800}.manual-key-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.manual-key-row input{min-width:0;height:42px;padding:0 12px;color:#f7efdc;background:#10100c94;border:1px solid rgba(247,239,220,.2);border-radius:11px;outline:0}.manual-key-row button{padding:0 13px}.read-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;width:100%;color:#10100c;background:#ff715b;border:0;border-radius:16px;box-shadow:0 14px 36px #ff715b38;font-size:1rem;font-weight:900;cursor:pointer}.read-button:disabled{cursor:not-allowed;opacity:.48}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-note{display:flex;align-items:center;gap:10px;padding:12px 13px;color:#ffd7cf;background:#ff715b1c;border:1px solid rgba(255,113,91,.35);border-radius:14px;font-size:.9rem}.result-panel{display:grid;grid-template-columns:minmax(0,.96fr) minmax(330px,.84fr);gap:22px;padding:22px;background:#f7efdc12;border:1px solid rgba(247,239,220,.18);border-radius:28px}.result-copy{display:flex;flex-direction:column;min-width:0;padding:28px;border-radius:22px;background:#1b1812;border:1px solid rgba(231,255,85,.2)}.result-kicker{color:#e7ff55;font-family:JetBrains Mono,monospace;font-size:.78rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.result-copy h2{max-width:100%;margin:15px 0 28px;color:#fff8e5;font-family:"Instrument Serif",Georgia,serif;font-size:clamp(4rem,5.8vw,6.1rem);font-weight:400;line-height:.9;overflow-wrap:anywhere}dl{display:grid;gap:14px;margin:auto 0 0}dl div{padding-top:14px;border-top:1px solid rgba(247,239,220,.16)}dt{color:#ff715b;font-family:JetBrains Mono,monospace;font-size:.74rem;font-weight:800;text-transform:uppercase}dd{margin:7px 0 0;color:#f7efdce0;font-size:clamp(1rem,1.6vw,1.28rem);line-height:1.38}.result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}.result-actions button{display:inline-flex;align-items:center;gap:8px;padding:0 14px}.tarot-frame{position:relative;min-height:620px;padding:16px;background:linear-gradient(#2d261a,#17130d) padding-box,linear-gradient(145deg,#e7ff55,#ff715b,#f7efdc) border-box;border:3px solid transparent;border-radius:28px;overflow:hidden}.tarot-frame:after{content:"";position:absolute;top:16px;right:16px;bottom:16px;left:16px;border:1px solid rgba(247,239,220,.5);border-radius:20px;pointer-events:none}.tarot-frame img{display:block;width:100%;height:100%;min-height:588px;object-fit:cover;border-radius:20px;filter:saturate(1.04) contrast(1.02)}.tarot-placeholder{display:grid;min-height:588px;place-items:center;align-content:center;gap:16px;padding:40px;color:#f7efdcad;text-align:center;border-radius:20px;background:linear-gradient(135deg,rgba(231,255,85,.1),transparent),repeating-linear-gradient(0deg,rgba(247,239,220,.05) 0 1px,transparent 1px 8px),#15130f}footer{position:relative;z-index:1;max-width:1380px;margin:18px auto 0;color:#f7efdc8c;font-size:.88rem}footer a{color:#e7ff55;font-weight:800}@media(max-width:1080px){.workspace,.result-panel{grid-template-columns:1fr}.receipt-panel,.result-panel{min-height:auto}.tarot-frame{min-height:520px}.tarot-frame img,.tarot-placeholder{min-height:488px}}@media(max-width:700px){.app-shell{padding:16px}.topbar{align-items:flex-start;flex-direction:column}.connect-button,.connected-button,.key-actions{width:100%}.brand-mark{width:46px;height:46px;border-radius:14px;box-shadow:4px 4px #ff715b}.receipt-panel,.result-panel{padding:14px;border-radius:22px}.receipt-paper{padding:22px 18px}.tone-grid,.manual-key-row{grid-template-columns:1fr}.result-copy{padding:22px}.result-copy h2{max-width:100%;font-size:clamp(3.5rem,18vw,5rem)}.tarot-frame{padding:12px;min-height:430px}.tarot-frame:after{top:12px;right:12px;bottom:12px;left:12px}.tarot-frame img,.tarot-placeholder{min-height:404px}}
