:root{color-scheme:dark;--paper:#09162e;--ink:#eef3ff;--teal:#f6cd69;--teal-dark:#f1c766;--red:#eabf5c;--line:#47618b;background:#09162e;color:#eef3ff;font-family:'Quicksand',sans-serif}body{background:radial-gradient(ellipse at top,#193966,#09162e 75%);color:#eef3ff}*{box-sizing:border-box}[hidden]{display:none!important}a{color:#f6d989}h1,h2,h3,button.primary{font-family:'Lilita One',cursive;font-weight:400}button,select,input{font:inherit}button,select{min-width:44px;min-height:44px;padding:8px 12px;color:#fff3d5;background:#18375f;border:1px solid #7d7552;border-radius:10px;font-size:12px;font-weight:700}button:enabled{cursor:pointer}button:disabled{opacity:.58}button:active{transform:translateY(2px) scale(.98)}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #6fd8ff;outline-offset:3px}a{min-height:44px;display:inline-flex;align-items:center}.tijolo-topo{background:#0a1732;border-bottom:1px solid #bc9348;height:68px;padding:8px max(16px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between}.tijolo-topo nav{display:flex;gap:16px}.tijolo-topo img{width:148px;height:auto}main{max-width:1160px;margin:auto}.templo-banner{height:196px;position:relative;margin:0;overflow:hidden;border-radius:0 0 28px 28px}.templo-banner img{height:100%;width:100%;object-fit:cover;filter:brightness(.7)}.templo-banner div{position:absolute;inset:22px 28px auto;max-width:620px;background:linear-gradient(90deg,#071630df,transparent);padding:12px 16px}.templo-banner h1{font-size:32px;line-height:1.1;color:#ffe49b;margin:4px 0}.templo-banner p{font-size:12px;color:#e4ebfa;margin:4px 0}.templo-sala{position:relative;margin:-22px 24px 0;padding:16px;background:#0d2346;border:1px solid #cda44f;border-radius:18px;box-shadow:0 10px 40px #0008}.templo-carteira{display:flex;align-items:center;gap:8px;border-bottom:1px solid #344c76;padding:0 0 8px}.templo-carteira>div{margin-right:auto;font-size:11px;letter-spacing:.06em}.templo-carteira strong{display:block;font-size:24px;color:#ffdb7b;font-variant-numeric:tabular-nums}.session-mode{font-size:11px;margin:5px 0 10px;color:#b8c9e1}.table{display:grid;grid-template-columns:1fr 1.03fr;gap:12px;grid-template-areas:'controls stage' 'card stage' 'result result'}.controls{grid-area:controls;background:#112e56;padding:12px;border-radius:12px}.entry,.play{display:flex;align-items:center;gap:8px}.entry label{font-size:12px}.entry select{width:116px}.primary,#start,#skip{background:linear-gradient(#ffe5a0,#db9f32);color:#172447;border-color:#ffdf86;box-shadow:0 4px 0 #7c571a;font-size:16px;min-height:48px}#start,#skip{flex:1}.visual-controls{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px}.auto{font-size:12px;min-height:44px;display:flex;align-items:center;gap:8px}.auto input{width:20px;height:20px;accent-color:#eabe5a}.stamp-note,.status{font-size:12px;line-height:1.5;margin:7px 0}.stamp-note a{min-height:44px}.stage{grid-area:stage;position:relative;border:1px solid #987b43;border-radius:12px;background:radial-gradient(ellipse at 50% 35%,#254a77,#081a36);display:flex;align-items:center;justify-content:center;flex-wrap:wrap;align-content:center;overflow:hidden;padding:20px;min-height:370px}.urn{width:65%;max-width:310px}.urn img{width:100%;height:auto;display:block;filter:drop-shadow(0 8px 14px #0008)}.rolling .urn{animation:templo-urn 2.3s ease-in-out infinite}.callout{text-align:center;width:35%}.eyebrow{font-size:11px;letter-spacing:.08em;color:#f1cd74}.current{display:grid;place-items:center;width:100px;height:100px;max-width:100%;margin:auto;background:radial-gradient(circle at 35% 30%,#3168aa,#12366b);border:4px double #f4cd71;border-radius:50%;color:#ffe6a4;font-size:32px;font-weight:700;box-shadow:0 0 24px #dbaa3d33}.count{font-size:12px}.track{height:4px;background:#254770;overflow:hidden}.track>div{height:100%;background:#f1c65d}.recent{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;margin-top:16px;border-top:1px solid #4a607d;padding-top:12px;font-size:11px}#recent{display:flex;gap:5px}.mini{display:grid;place-items:center;min-width:32px;min-height:32px;background:#d4a54b;color:#10254a;border-radius:50%;font-size:12px;font-weight:700}.ticket{grid-area:card;padding:12px;background:#10294e;border:1px solid #476187;border-radius:12px}.ticket-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.ticket-top h2{font-size:22px;margin:0}.ticket-top p{margin:0}.letters,.board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.letters span{text-align:center;font-family:'Lilita One';font-size:18px;color:#efc762}.cell{min-height:44px;padding:0;border-color:#5c7295;background:linear-gradient(#2b4d7c,#18345e);color:#e9f1ff;font-size:18px;opacity:1!important;font-weight:700;position:relative}.cell.stamped{background:linear-gradient(#e7bf62,#b47d28);color:#122647}.cell.free{font-size:12px}.cell.called{outline:2px solid #65cfe1}.cell.near{box-shadow:0 0 0 2px #f8db8a,inset 0 0 18px #e2b24799}.cell.winning{background:linear-gradient(#fff2ad,#efc152);color:#102247;box-shadow:0 0 14px #f7c65b77}.ticket-foot,.choices{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-top:8px;font-size:11px}.choices button{min-width:44px}.choices button[aria-pressed=true]{background:#dcb153;color:#102448}.choices span{font-size:11px}.result{grid-area:result;padding:16px;border:1px solid #e2bd69;border-radius:12px}.result h2{font-size:22px}.result dl{display:flex;gap:22px}.result dt{font-size:12px}.result dd{font-size:20px;margin:0;color:#ffd981}.details{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px;padding:16px}.details h2,.history h2{font-size:24px}.details li,.details p,.history{font-size:14px;line-height:1.7}.details table{width:100%;border-collapse:collapse;font-size:13px}.details th,.details td{border-bottom:1px solid #3a5279;text-align:left;padding:8px}.history{margin:24px 16px}.history ul{padding:0;list-style:none}.history li{display:flex;justify-content:space-between;border-bottom:1px solid #35476d;padding:10px;font-size:12px}.tijolo-prosa,.tijolo-leitura{background:#10264a;color:#eef2ff;border:1px solid #365480}.tijolo-prosa table{background:#142c53}.tijolo-prosa th{background:#224975;color:#ffe09a}.tijolo-prosa td{border-color:#41638e}.tijolo-prosa h1,.tijolo-prosa h2{color:#f7d891}.tijolo-assinatura{color:#c7d3e7}.tijolo-indice a{background:#1b3e68;border-color:#4d6b91;color:#ffe1a0}footer{background:#061329;color:#d9e3f6;border-top:1px solid #ad8d48}footer a{color:#f3d481}.tijolo-capa{border-radius:16px}dialog{color:#f5f0de;background:#102448;border:1px solid #d2ae61;border-radius:18px;max-width:min(620px,calc(100vw - 24px));padding:24px;max-height:calc(100dvh - 24px)}dialog::backdrop{background:#020915c9;backdrop-filter:blur(6px)}#journey-close{float:right}#journey-stages{padding-left:22px;font-size:13px;line-height:1.6}#journey-stages li{margin:8px 0}#journey-stages li.active{color:#ffd778}.journey-buttons{display:flex;gap:8px;flex-wrap:wrap}#journey-message{font-size:12px}.error{padding:12px;background:#7e2b32;color:white}.top-actions{display:flex;gap:8px}#celebration{position:fixed;inset:0;z-index:90;width:100%;height:100%;border:0;background:#07162eec;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#ffdb76;overflow:hidden}#celebration-tier{font-family:'Lilita One';font-size:56px;text-shadow:0 0 24px #f5c952}#celebration-amount{font-size:54px}#celebration small{font-size:12px}#celebration-coins{position:absolute;inset:0;pointer-events:none}#celebration-coins img{position:absolute;width:40px;animation:templo-coins 1.5s var(--delay) infinite}.qa-mark{position:fixed;bottom:0;left:0;background:#900;color:white;font-size:11px;padding:3px;z-index:999}.templo-presente{width:460px;max-width:calc(100vw - 20px);text-align:center;overflow:visible;padding:24px;background:radial-gradient(at top,#214f80,#0c1c3d 75%);box-shadow:0 0 0 4px #172d4f,0 20px 80px #0009}.templo-presente .templo-fechar{position:absolute;right:8px;top:8px;font-size:24px;background:#14294b;border-color:#7c8dad}.templo-presente h2{font-size:30px;margin:4px 0;color:#ffe2a2}.templo-presente p{font-size:13px;line-height:1.45;margin:8px 0}.templo-presente .templo-arte{width:200px;height:190px;object-fit:contain;display:block;margin:0 auto;filter:drop-shadow(0 0 22px #f3b73e55)}.templo-presente .templo-valor{display:block;font-size:30px;color:#f7d16b;font-family:'Lilita One'}.templo-presente .templo-acao{display:block;width:100%;margin-top:10px;background:linear-gradient(#ffe5a2,#d99f35);color:#10294b;font-size:15px}.templo-presente .templo-encerrar{margin-top:8px;background:transparent}.templo-presente .templo-idade{font-size:11px;margin:10px 0 0}.templo-presente small{font-size:11px}.templo-dock{position:fixed;right:14px;bottom:14px;width:72px;height:72px;padding:4px;z-index:40;background:#153560;border-color:#e7bd62;border-radius:50%}.templo-dock img{width:60px;height:60px;object-fit:contain}.templo-dock b{position:absolute;right:-2px;top:-2px;border-radius:50%;background:#f2c65e;color:#122d50;font-size:12px;width:23px;height:23px;display:grid;place-items:center}.templo-dock[data-pronto=true]{box-shadow:0 0 24px #f5c54a;animation:templo-dock 3s infinite}.templo-presente[data-momento=shake] .templo-arte{animation:templo-shake .12s 6}.templo-presente[data-momento=light] .templo-arte{filter:drop-shadow(0 0 52px #ffdf6d);transform:scale(1.08)}.templo-presente .templo-brilho{position:absolute;width:260px;height:260px;left:50%;top:40px;transform:translateX(-50%);background:radial-gradient(circle,#ffed8a9c,transparent 68%);pointer-events:none;opacity:0}.templo-presente[data-momento=light] .templo-brilho,.templo-presente[data-momento=coins] .templo-brilho{opacity:1}.templo-voadora{position:fixed;width:36px;height:36px;object-fit:contain;pointer-events:none;z-index:5}body.templo-saldo #balance{color:#fff6be;text-shadow:0 0 18px #ffd24c}@keyframes templo-shake{25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}@keyframes templo-dock{50%{transform:translateY(-5px)}}@keyframes templo-urn{50%{transform:rotate(2deg) translateY(-3px)}}@keyframes templo-coins{to{transform:translateY(105vh) rotate(360deg)}}
@media(max-width:700px){.tijolo-topo{height:64px;padding:6px 12px}.tijolo-topo nav{gap:8px}.tijolo-topo nav a{font-size:12px}.templo-banner{height:145px;border-radius:0}.templo-banner div{inset:8px 10px auto;padding:8px;max-width:95%}.templo-banner h1{font-size:25px;max-width:330px}.templo-banner p{font-size:11px}.templo-sala{margin:-12px 8px 0;padding:10px}.templo-carteira{gap:5px}.templo-carteira button{font-size:11px;padding:5px 7px}.templo-carteira strong{font-size:20px}.table{grid-template-columns:1fr;grid-template-areas:'controls' 'stage' 'card' 'result';gap:10px}.controls{padding:10px}.entry{flex-wrap:wrap;gap:6px}.entry label{width:100%}.entry select{width:100px}#start{font-size:15px}.visual-controls{margin-top:4px}.stamp-note{display:none}.status{margin:3px 0}.stage{min-height:155px;padding:8px 12px;flex-wrap:wrap}.urn{width:45%;max-width:135px}.callout{width:45%;display:grid;justify-items:center}.current{width:64px;height:64px;font-size:23px}.count{margin:4px 0}.callout .eyebrow{margin:0 0 4px}.track{width:80px}.recent{margin-top:4px;padding-top:5px;min-height:32px}.recent>span{font-size:11px}.mini{min-width:27px;min-height:27px;font-size:11px}.ticket{padding:10px}.board,.letters{gap:4px}.cell{min-height:44px;font-size:17px}.ticket-top h2{font-size:20px}.choices{justify-content:flex-start}.choices span{margin-left:auto}.details{grid-template-columns:1fr;padding:8px;gap:12px}.result dl{gap:12px;flex-wrap:wrap}.history{margin:20px 8px}.history li{display:block}.history span{display:block}.templo-presente{padding:20px 16px 16px}.templo-presente .templo-arte{width:180px;height:165px}.templo-presente h2{font-size:26px}.templo-presente p{font-size:12px;margin:6px 0}.templo-presente .templo-valor{font-size:26px}.templo-presente .templo-idade{font-size:11px}.templo-presente .templo-acao{font-size:13px}.templo-presente .templo-encerrar{font-size:12px}}
@media(max-height:680px){.templo-presente .templo-arte{width:145px;height:130px}.templo-presente{padding:14px}.templo-presente h2{font-size:24px}.templo-presente p{margin:5px 0}.templo-presente .templo-acao{margin-top:6px}.templo-presente .templo-encerrar{margin-top:5px}.templo-presente .templo-idade{margin-top:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.templo-presente .templo-arte{transform:none!important}}
.current{background-image:url('/barro/templo-bola.webp');background-size:cover;background-position:center;border:0;text-shadow:0 1px 2px #071d3d;color:#10264b}.tijolo-banner.templo-banner{color:#eef3ff}
.templo-presente .templo-idade{font-size:12px}.templo-carteira button{font-size:12px}
.tijolo-prosa table{width:100%;table-layout:fixed;border-collapse:collapse;overflow-wrap:anywhere}.tijolo-prosa th,.tijolo-prosa td{padding:8px 6px;vertical-align:top}
body[data-skin=jade] .ticket{border-color:#52c4b1;box-shadow:inset 0 0 20px #2b9b891c}body[data-skin=sapphire] .ticket{border-color:#6cb9f4;box-shadow:0 0 18px #397bca55}body[data-skin=ruby] .ticket{border-color:#de7b8d;box-shadow:inset 0 0 20px #a747681c}body[data-skin=imperial] .ticket{border:2px solid #e5b957;background:linear-gradient(135deg,#173760,#152744)}body[data-skin=master] .ticket{border:2px solid #ffe09a;box-shadow:0 0 28px #e5ba555e}


/* convite · posição unificada (gaveta inferior no celular, base no desktop) */
dialog.templo-presente{position:fixed!important;inset:auto 0 0 0!important;margin:0 auto!important;width:100%!important;max-width:100%!important;height:fit-content!important;min-height:0!important;max-height:min(50dvh,440px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;border-radius:24px 24px 0 0!important;transform:none!important;rotate:none!important;z-index:1000!important;padding-bottom:env(safe-area-inset-bottom)}
dialog.templo-presente>*{max-height:none!important;height:auto!important;min-height:0!important;transform:none!important;rotate:none!important}
dialog.templo-presente[open]{animation:templo-pre-respira .34s cubic-bezier(.2,.8,.3,1)}
@keyframes templo-pre-respira{from{translate:0 100%}to{translate:0 0}}
dialog.templo-presente img[alt]:not([alt='']){width:120px!important;height:120px!important;max-width:none!important;max-height:none!important;min-height:0!important;object-fit:contain}
button.templo-fechar{position:absolute!important;top:8px!important;right:8px!important;left:auto!important;bottom:auto!important;min-width:44px!important;min-height:44px!important;z-index:5}
@media(min-width:768px){dialog.templo-presente{bottom:16px!important;width:clamp(480px,60vw,760px)!important;max-height:50vh!important;border-radius:24px!important}dialog.templo-presente img[alt]:not([alt='']){width:160px!important;height:160px!important}}
@media(max-width:360px){dialog.templo-presente img[alt]:not([alt='']){width:88px!important;height:88px!important}}
@media(max-height:500px) and (max-width:1000px){dialog.templo-presente{inset:auto 0 0 0!important;margin:0 auto!important;width:100%!important;max-height:70dvh!important;border-radius:22px 22px 0 0!important}dialog.templo-presente img[alt]:not([alt='']){width:88px!important;height:88px!important}}
@media(prefers-reduced-motion:reduce){dialog.templo-presente[open]{animation:none}}
dialog.templo-presente button:is([aria-label*="echar" i],[aria-label*="lose" i]){min-width:46px!important;min-height:46px!important}
@media(max-height:500px){dialog.templo-presente[open]{animation:none!important;translate:none!important}}
dialog.templo-presente[open]{animation:none!important;translate:none!important}
