/* Reino do Noel — estilos complementares ao CSS original (site.css) */

/* header ao rolar */
header[data-chrome] > div.reino-scrolled { background: rgb(255 255 255 / .96); box-shadow: 0 10px 30px -20px rgb(13 14 59 / .5); backdrop-filter: blur(8px); }
.reino-timer { font-variant-numeric: tabular-nums; font-weight: 700; }

/* toast */
#reino-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 140%); max-width: min(92vw, 480px); padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; color: #fff; background: #0f5132; box-shadow: 0 14px 40px -14px rgb(0 0 0 / .55); transition: transform .35s ease; text-align: center; }
#reino-toast.err { background: #b3122a; }
#reino-toast.show { transform: translate(-50%, 0); }
body:has([data-bottom-bar]) #reino-toast { bottom: 150px; }

/* personalização */
.reino-bar-off { background: rgb(0 0 0 / .1); }
.reino-input, .reino-textarea { width: 100%; border-radius: .75rem; border: 1px solid rgb(0 0 0 / .15); background: #fff; padding: 0 14px; font-size: 16px; color: var(--color-ink, #1d1d3b); outline: none; transition: border-color .15s, box-shadow .15s; }
.reino-input { height: 48px; }
.reino-textarea { padding: 12px 14px; resize: vertical; min-height: 150px; line-height: 1.45; }
.reino-input:focus, .reino-textarea:focus { border-color: #b3122a; box-shadow: 0 0 0 3px rgb(179 18 42 / .18); }
.reino-input::placeholder, .reino-textarea::placeholder { color: #9a96a8; }
.reino-pill { height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; background: #fff; color: #1d1d3b; box-shadow: inset 0 0 0 2px rgb(0 0 0 / .1); transition: all .15s; }
.reino-pill:hover { box-shadow: inset 0 0 0 2px rgb(230 29 43 / .5); }
.reino-pill.is-on { background: #e61d2b; color: #fff; box-shadow: 0 8px 20px -10px rgb(230 29 43 / .9); }
.reino-erro { margin-top: 4px; font-size: 13px; font-weight: 700; color: #b3122a; }
.reino-invalid { border-color: #b3122a !important; }

/* recorte da foto */
.reino-cropper { position: fixed; inset: 0; z-index: 120; overflow-y: auto; background: #0d0e3b; display: flex; justify-content: center; padding: 18px 16px 28px; }
.reino-cropper-inner { width: 100%; max-width: 420px; text-align: center; }
.reino-frame { margin: 18px auto 0; width: min(78vw, 300px); aspect-ratio: 3 / 4; border-radius: 10px; border: 4px solid #f4c95d; box-shadow: 0 0 0 2px rgb(255 255 255 / .1), 0 0 38px 6px rgb(244 201 93 / .45); overflow: hidden; }
.reino-frame canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.reino-frame canvas:active { cursor: grabbing; }
.reino-zoom { display: flex; align-items: center; gap: 10px; margin: 18px auto 0; width: min(78vw, 300px); color: #fff; font-weight: 700; }
.reino-zoom input { flex: 1; accent-color: #f4c95d; }
.reino-cropper-btns { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.reino-btn-outline, .reino-btn-red { height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; }
.reino-btn-outline { color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .55); }
.reino-btn-red { color: #fff; background: #e61d2b; box-shadow: 0 10px 26px -10px rgb(230 29 43 / .9); }

/* overlay "enviando" + spinner */
.reino-enviando { position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background: rgb(13 14 59 / .92); padding: 24px; }
.reino-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgb(255 255 255 / .2); border-top-color: #f4c95d; animation: reino-spin .9s linear infinite; }
@keyframes reino-spin { to { transform: rotate(360deg); } }

/* checkout: abas de pagamento */
.reino-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reino-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #fff; text-align: left; font-size: 14px; font-weight: 600; color: #4b4b63; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12), 0 2px 6px -4px rgb(0 0 0 / .2); transition: all .15s; }
.reino-tab.is-on { color: #b3122a; box-shadow: inset 0 0 0 2px #b3122a; }
[data-bump][aria-disabled="true"] { pointer-events: none; }

/* checkout: prévia */
.reino-prev-loading { background: #0d0e3b; }
.reino-prev-bar { width: 0; animation: reino-bar 3.4s ease-out forwards; }
@keyframes reino-bar { to { width: 100%; } }
#previa .reino-prev-titulo, #previa .reino-prev-carta, #previa .reino-prev-nome { position: absolute; pointer-events: none; opacity: 0; transition: opacity .7s ease, transform .9s ease; }
#previa .reino-prev-titulo { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgb(13 14 59 / .55), rgb(13 14 59 / .15)); color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / .7); }
#previa .reino-prev-titulo span { font-size: clamp(13px, 3.2vw, 18px); font-weight: 700; letter-spacing: .04em; }
#previa .reino-prev-titulo b { font-family: var(--font-display, serif); font-size: clamp(30px, 8vw, 52px); color: #f4c95d; line-height: 1.05; margin-top: 4px; }
#previa.fase-titulo .reino-prev-titulo { opacity: 1; }
#previa .reino-prev-carta { inset: 0; display: flex; align-items: center; justify-content: center; gap: 4%; background: rgb(20 10 5 / .35); transform: scale(.92); }
#previa .reino-prev-carta figure { width: 27%; max-width: 170px; aspect-ratio: 3 / 4.25; padding: 6px 6px 0; background: linear-gradient(160deg, #fff8e6, #f2dfb4); border-radius: 6px; box-shadow: 0 0 0 3px #d9a93a, 0 0 30px 4px rgb(244 201 93 / .55), 0 18px 30px -10px rgb(0 0 0 / .7); transform: rotate(calc((var(--i) - 1) * 4deg - 3deg)); display: flex; flex-direction: column; }
#previa .reino-prev-carta img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
#previa .reino-prev-carta figcaption { font-family: 'Segoe Print', var(--font-hand, cursive); color: #7a2a12; font-size: clamp(11px, 2.6vw, 17px); text-align: center; padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#previa.fase-carta .reino-prev-carta { opacity: 1; transform: scale(1); }
#previa .reino-prev-nome { left: 50%; bottom: 9%; transform: translate(-50%, 10px); padding: 6px 16px; border-radius: 999px; background: rgb(13 14 59 / .6); color: #fff; font-weight: 700; font-size: clamp(14px, 3.6vw, 20px); white-space: nowrap; backdrop-filter: blur(3px); }
#previa.fase-nome .reino-prev-nome { opacity: 1; transform: translate(-50%, 0); }

/* modal genérico */
.reino-modal { margin: auto; width: min(440px, 92vw); border-radius: 22px; padding: 0; border: 0; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6); }
.reino-modal::backdrop { background: rgb(13 14 59 / .75); backdrop-filter: blur(3px); }
.reino-modal code { font-size: 12px; background: rgb(0 0 0 / .06); padding: 1px 4px; border-radius: 4px; }

/* estrelas da avaliação */
.reino-star-on { color: #e0a526 !important; }
