/* Sorteio · Baile dos Médicos — palco escuro, preto e branco, feito para projetor/TV */
body.raffle { min-height: 100dvh; height: auto; overflow-x: hidden; background: #000; }
body.raffle::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(255, 255, 255, .13), transparent 70%),
    radial-gradient(700px 400px at 12% 105%, rgba(255, 255, 255, .06), transparent 70%),
    radial-gradient(700px 400px at 90% 105%, rgba(255, 255, 255, .06), transparent 70%);
}
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

.layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 100dvh; }
body.presenting .layout { grid-template-columns: 1fr; }
body.presenting .panel { display: none; }

.stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 3vh, 34px); padding: clamp(18px, 4vh, 48px) clamp(16px, 4vw, 56px); text-align: center; }

.head { display: grid; justify-items: center; gap: 6px; }
.head .flame { height: clamp(48px, 9vh, 92px); width: auto; opacity: .95; }
.eyebrow.big { font-size: clamp(.7rem, 1.4vw, 1rem); letter-spacing: .5em; color: #cfcfcf; }
.head h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; line-height: 1.1; }

.prize-wrap { display: grid; justify-items: center; gap: 6px; width: min(100%, 780px); }
.prize { width: 100%; text-align: center; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); color: #fff; font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(1.3rem, 3.2vw, 2.4rem); padding: .3rem .4rem; outline: none; }
.prize::placeholder { color: rgba(255, 255, 255, .35); }
.prize:focus { border-bottom-color: #fff; }

.card { position: relative; width: min(100%, 1100px); min-height: clamp(200px, 34vh, 360px); display: grid; place-content: center; gap: 14px; padding: clamp(20px, 4vw, 52px); border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); box-shadow: 0 30px 90px rgba(0, 0, 0, .6), inset 0 0 0 6px #000, inset 0 0 0 7px rgba(255, 255, 255, .12); }
.card .congrats { font-size: clamp(.8rem, 1.6vw, 1.1rem); letter-spacing: .6em; text-transform: uppercase; color: #cfcfcf; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; padding-left: .6em; }
.card .name { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 6.4vw, 5.6rem); line-height: 1.08; text-wrap: balance; overflow-wrap: anywhere; min-height: 1.1em; transition: transform .12s, filter .12s, opacity .12s; }
.card .meta { font-size: clamp(.85rem, 1.7vw, 1.3rem); letter-spacing: .08em; color: #bdbdbd; min-height: 1.4em; }
.card.idle .name { color: rgba(255, 255, 255, .5); font-style: italic; }
.card.spinning .name { filter: blur(1.2px); opacity: .85; }
.card.spinning .meta { opacity: 0; }
.card.win { border-color: #fff; box-shadow: 0 0 0 1px #fff, 0 0 80px rgba(255, 255, 255, .28), 0 30px 90px rgba(0, 0, 0, .6), inset 0 0 0 6px #000, inset 0 0 0 7px rgba(255, 255, 255, .5); }
.card.win .congrats { opacity: 1; transform: none; }
.card.win .name { animation: reveal .7s cubic-bezier(.2, .9, .2, 1.2); text-shadow: 0 0 40px rgba(255, 255, 255, .35); }
@keyframes reveal { from { transform: scale(.82); opacity: 0; filter: blur(8px); } }

.actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.draw { appearance: none; cursor: pointer; border: 0; background: #fff; color: #000; font-family: var(--font-body); font-weight: 600; letter-spacing: .5em; text-transform: uppercase; font-size: clamp(.95rem, 1.8vw, 1.3rem); padding: 1.05rem 3rem 1.05rem 3.5rem; border-radius: 2px; box-shadow: 0 0 0 1px #fff, 0 14px 40px rgba(255, 255, 255, .15); transition: transform .1s, box-shadow .2s, opacity .2s; }
.draw:hover { box-shadow: 0 0 0 1px #fff, 0 0 40px rgba(255, 255, 255, .4); }
.draw:active { transform: scale(.97); }
.draw:disabled { opacity: .4; cursor: default; box-shadow: none; }
.hint { margin: 0; color: #8f8f8f; font-size: .85rem; letter-spacing: .06em; min-height: 1.3em; }

/* painel de controles */
.panel { border-left: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .55); padding: 22px 20px 28px; overflow-y: auto; max-height: 100dvh; position: sticky; top: 0; align-self: start; height: 100dvh; }
.panel h2 { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #8f8f8f; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.panel .check { margin: 12px 0; color: #e6e6e6; font-size: .86rem; line-height: 1.35; align-items: flex-start; }
.panel .check input { margin-top: 2px; flex: none; accent-color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats div { border: 1px solid rgba(255, 255, 255, .14); padding: 10px 8px; text-align: center; }
.stats b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.stats span { display: block; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: #8f8f8f; margin-top: 2px; }
.winners { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.winners li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); font-size: .86rem; }
.winners li.empty { display: block; color: #8f8f8f; border: 0; }
.winners .n { color: #8f8f8f; font-variant-numeric: tabular-nums; }
.winners .who b { font-weight: 500; display: block; overflow-wrap: anywhere; }
.winners .who small { color: #9a9a9a; font-size: .72rem; }
.winners li.absent .who b { text-decoration: line-through; color: #8f8f8f; }
.winners .rm { background: none; border: 1px solid rgba(255, 255, 255, .16); color: #bdbdbd; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; line-height: 1; }
.winners .rm:hover { color: #fff; border-color: #fff; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tiny { color: #777; font-size: .72rem; margin: 16px 0 0; line-height: 1.5; }
.tiny b { color: #aaa; font-weight: 500; }
.raffle .gate .box p { margin: 0; color: #bdbdbd; }

/* botão discreto para sair do modo apresentação (aparece só nele; fica quase invisível até encostar) */
.exit-present { display: none; position: fixed; right: 14px; bottom: 14px; z-index: 70; background: rgba(0, 0, 0, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: .55rem 1.1rem; font-family: var(--font-body); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; opacity: .22; transition: opacity .2s; }
.exit-present:hover, .exit-present:focus-visible, .exit-present:active { opacity: 1; }
body.presenting .exit-present { display: block; }
@media (hover: none) { .exit-present { opacity: .5; } }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .panel { position: static; height: auto; max-height: none; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
}
