@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');
:root{color-scheme:dark;--bg:#121212;--ink:#f3efe8;--muted:#bcb4aa;--gold:#d4b581}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 system-ui,sans-serif}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:5px}header{max-width:1280px;margin:auto;padding:28px 40px;border-bottom:1px solid #ffffff15;display:flex;justify-content:space-between;align-items:center}header a{color:var(--gold);text-decoration:none;letter-spacing:3px;font-size:14px}header strong{font-weight:650}header span,.preview-label{font-size:12px;letter-spacing:2px;color:var(--muted)}main{max-width:1200px;margin:auto;padding:50px 40px 64px;display:grid;grid-template-columns:1.15fr 1fr;gap:80px}.eyebrow{color:var(--gold);font-size:12px;letter-spacing:3px;margin:0 0 16px}h1{font:normal clamp(38px,4.4vw,62px)/1.08 Georgia,serif;letter-spacing:-2px;margin:0 0 20px}h1 em{color:var(--gold);font-weight:normal}.intro{color:var(--muted);max-width:440px;margin-bottom:30px}fieldset{border:0;padding:0;margin:0 0 28px;min-width:0}legend{width:100%;margin-bottom:14px;font-size:16px}legend>span{font-size:12px;color:var(--gold);margin-right:10px}legend small{float:right;font-size:14px;color:var(--muted)}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips button{border:1px solid #ffffff24;border-radius:24px;color:var(--muted);background:transparent;padding:9px 16px;font-size:14px;min-height:44px;transition:background .2s,border-color .2s}.chips button[aria-pressed=true]{background:#d4b58120;color:#f7dab0;border-color:var(--gold)}button:disabled{opacity:.4;cursor:default}.themes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.themes button{display:flex;flex-direction:column;align-items:center;gap:7px;background:#ffffff03;border:1px solid #ffffff20;color:var(--muted);padding:13px 6px;border-radius:8px;font-size:14px}.themes button[aria-pressed=true]{border-color:var(--gold);color:var(--ink)}i{width:20px;height:20px;border-radius:50%;display:block}.gold{background:linear-gradient(135deg,#efd5a1,#6a4726)}.wine{background:linear-gradient(135deg,#f3a5b3,#56203c)}.blue{background:linear-gradient(135deg,#c8dfff,#3d538b)}label{display:block;font-size:14px;margin-bottom:8px}label span{color:var(--muted)}input{width:100%;padding:12px 14px;background:#ffffff04;border:1px solid #ffffff24;border-radius:6px;color:var(--ink);min-width:0}.actions{display:flex;flex-direction:column;gap:10px;margin-top:22px}.actions button,.share{min-height:48px;border-radius:6px;padding:11px 18px}.primary{background:var(--gold);border:1px solid var(--gold);color:#181510;font-weight:650}.secondary{background:transparent;border:1px solid #ffffff24;color:var(--ink)}.share{width:100%;margin-top:10px;color:var(--gold);border:1px solid var(--gold);background:transparent}#status{font-size:14px;color:var(--gold);min-height:23px}.note{font-size:12px;color:var(--muted);max-width:450px}.preview{align-self:start;position:sticky;top:24px;max-width:420px;width:100%;margin:auto}.preview-label{display:flex;justify-content:space-between;margin-bottom:13px;font-size:11px}canvas{display:block;width:100%;height:auto;border:1px solid #d4b58140;box-shadow:0 24px 80px #0008;border-radius:2px}.preview p{font-size:13px;color:var(--muted);text-align:center}footer{max-width:1200px;margin:auto;padding:24px 40px;border-top:1px solid #ffffff15;display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}footer a{color:var(--gold)}@media(max-width:800px){header{padding:20px}header span{display:none}main{padding:30px 20px;gap:32px;grid-template-columns:1fr}.preview{position:static;max-width:360px}h1{font-size:44px}.intro{margin-bottom:25px}footer{padding:22px 20px;gap:16px;flex-wrap:wrap}.themes button{font-size:13px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Moldura institucional compartilhada com Entre Cartas e Enigma do Zodíaco. */
header{max-width:1120px;min-height:90px;margin:0 auto;padding:0;border-bottom:1px solid #ffffff21;gap:20px}
header .brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;letter-spacing:normal;font:400 20px/1.4 'Playfair Display',Georgia,serif}
header .brand-symbol{display:block;color:var(--gold);font:36px/1 Georgia,serif;letter-spacing:normal}
header .brand-name{display:block;color:var(--ink);font:inherit;letter-spacing:normal}
header .brand small{display:block;margin-top:5px;color:var(--muted);font:500 10px/1.6 'DM Sans',sans-serif;letter-spacing:2px}
header .home-link{color:var(--ink);font:400 14px/1.6 'DM Sans',Arial,sans-serif;letter-spacing:normal;text-decoration:none;border-bottom:1px solid #ffffff50;padding:8px 0;flex-shrink:0;min-height:44px;display:flex;align-items:center}
footer{max-width:1120px;margin:30px auto 0;padding:25px 0;border-top:1px solid #ffffff21;gap:15px;color:var(--muted);font:400 12px/1.6 'DM Sans',Arial,sans-serif}
footer>span:first-child{color:var(--ink);font:400 18px/1.4 'Playfair Display',Georgia,serif}
@media(max-width:1200px){header,footer{margin-left:40px;margin-right:40px}}
@media(max-width:800px){header,footer{margin-left:20px;margin-right:20px}header{min-height:78px}header .brand{font-size:17px}header .brand small{letter-spacing:1.5px}footer{padding:25px 0}}
@media(max-width:420px){header{gap:10px}header .brand{font-size:16px;gap:7px}header .brand-symbol{font-size:30px}header .brand small{display:none}footer{flex-direction:column}}
