/* Public Christmas landing */
#page-landing:not(.active) { display: none; }
#page-landing.active { display: block; background: #081326 !important; }
.bw {
  width: 100%;
  --night: #081326;
  --paper: #f8fbff;
  --muted: #bbcee3;
  --gold: #ffcf65;
  --display: 'Poppins', 'Arial Black', 'Segoe UI', sans-serif;
  color: var(--paper);
  background: var(--night);
  font: 400 15px/1.52 'Segoe UI', Arial, sans-serif;
}
.bw h1, .bw h2, .bw h3, .bw nav, .bw-play, .bw-shot, .bw-preview-badge,
.bw-step-art span, .bw figcaption b { font-family: var(--display); font-weight: 900; }
.bw a:focus-visible, .bw button:focus-visible { outline: 3px solid #ffed9d; outline-offset: 4px; }
.bw button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bw-hero {
  --bw-landscape: url('/images/bubble-win/vila.webp');
  position: relative; isolation: isolate; min-height: max(690px, 100svh);
  padding: 78px 18px 64px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(5,14,31,.76) 0%, rgba(9,25,51,.16) 10%, rgba(11,24,48,.16) 55%, rgba(9,20,41,.55) 82%, #081326 100%),
    var(--bw-landscape) center center / cover no-repeat;
}
.bw-header { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 20px; }
.bw-brand { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 2px 5px #051521); }
.bw-header nav { display: flex; align-items: center; gap: 10px; padding-top: 7px; }
.bw-header a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 17px; border-radius: 99px; font-size: 13px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.bw-login { border: 1px solid #ffffff5f; background: #0d1e30ae; backdrop-filter: blur(8px); }
.bw-signup { border: 1px solid var(--gold); background: linear-gradient(#f44352,#ba142b); box-shadow: 0 4px 14px #8b142657; }
.bw-header a:hover, .bw-play:hover, .bw-shot:hover { filter: brightness(1.13); }
.bw-hero-content { width: min(100%,720px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.bw h1 { color: #fff; text-transform: uppercase; font-size: clamp(38px,5.8svh,58px); letter-spacing: -.047em; line-height: 1.04; text-shadow: 0 2px 0 #203047, 0 5px 20px #15274199; }
.bw h1 span { color: #ffd46a; text-shadow: 0 2px 0 #814d15,0 4px 18px #18374b63; }
.bw h1 em { font-style: normal; color: #50e284; text-shadow: 0 2px 0 #126238,0 4px 18px #18374b63; }
.bw-divider { height: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bw-divider::before, .bw-divider::after { content: ''; width: 64px; height: 1px; background: linear-gradient(90deg,transparent,var(--gold)); }
.bw-divider::after { transform: rotate(180deg); }
.bw-divider i { width: 6px; height: 6px; border-radius: 50%; background: #ffe092; }
.bw-hero-content > .bw-divider { margin: clamp(8px,1.35svh,15px) 0 clamp(22px,2.8svh,29px); }
.bw-play { width: 100%; min-height: 55px; display: grid; place-items: center; padding: 10px 20px; line-height: 1.2; border-radius: 100px; border: 2px solid #ffd25b; background: linear-gradient(#34d676,#138845); color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .018em; text-shadow: 0 1px 1px #11552d; box-shadow: 0 0 0 3px #07614565,0 8px 24px #0fb56a42; }
.bw-hero .bw-play { margin-top: clamp(15px,2svh,22px); }
.bw-account { margin-top: 12px; padding: 5px 12px; font-weight: 700; color: #e1f0ff; font-size: 14px; text-shadow: 0 1px 4px #071529; }
.bw-account:hover { text-decoration: underline; }

/* The demo scales as one portrait board, including its hit targets. */
.bw-preview {
  position: relative; width: clamp(199px,30.5svh,290px); aspect-ratio: 9/15.75; container-type: inline-size;
  padding: 5px; border-radius: 30px;
  background: linear-gradient(145deg,#fff0a0 1%,#ffc450 16%,#39dc99 38%,#f45f71 64%,#ff293e 96%);
  box-shadow: 0 10px 32px #190b2696, 0 0 20px #ffd6754d;
}
.bw-preview-badge { position: absolute; z-index: 2; left: 50%; top: 0; transform: translate(-50%,-38%); white-space: nowrap; display: flex; align-items: center; gap: 5px; padding: 6px 16px; border: 2px solid #48df8b; border-radius: 24px; background: #0b1928; color: white; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; box-shadow: 0 3px 14px #111b3b66; }
.bw-preview-badge i { width: 7px; height: 7px; border-radius: 50%; background: #4de294; box-shadow: 0 0 8px #39eb83; }
.bw-preview-badge strong { color: #63e798; }
.bw-screen { position: relative; height: 100%; border-radius: 25px; overflow: hidden; background: linear-gradient(180deg,#110f3033 0%,#201a3950 31%,#24132939 65%,#11172b99 100%),url('/images/bubble-win/tabuleiro.webp') center / cover; box-shadow: inset 0 0 25px #1a173e80; }
.bw-game-hud { position: absolute; top: 8%; left: 3%; width: 94%; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 1.3cqw; align-items: end; color: #fff2bf; }
.bw-game-hud > div { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #ffcf62; border-radius: 2.7cqw; background: linear-gradient(#967043,#603415 45%,#412310); box-shadow: inset 0 2px 0 #ffefd1,0 2px 0 #351b12,0 4px 6px #16101b84; height: 8.3cqw; line-height: 1; text-shadow: 0 1px 1px #341609; }
.bw-game-hud small { font: 700 2.3cqw/1.2 'Segoe UI',sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.bw-game-hud strong { font: 900 3.7cqw/1.08 var(--display); }
.bw-game-hud .bw-score { height: 11.5cqw; background: linear-gradient(#d94b36,#9d2318 55%,#66231a); }
.bw-game-hud .bw-score strong { font-size: 5.7cqw; color: #ffe28a; }
.bw-meter { position: absolute; top: 15.8%; left: 14%; width: 72%; height: 2.9cqw; border: 1px solid #77371b; border-radius: 6px; padding: 1px; background: #b58547; box-shadow: inset 0 1px 2px #4f321b,0 1px 0 #ffdf86; }
.bw-meter i { display: block; height: 100%; border-radius: 6px; background: repeating-linear-gradient(130deg,#ffe56e 0 5px,#fff5c8 5px 8px); transition: width .25s ease; }
.bw-field { position: absolute; left: 4%; right: 4%; top: 18.6%; bottom: 12.5%; border-radius: 4cqw; background: linear-gradient(#10183965,#20183b12 53%,transparent); }
.bw-field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 14%; border-top: 2px dashed #ff829273; pointer-events: none; }
.bw-group { position: absolute; inset: 0; padding: 0; border: 0; background: none; pointer-events: none; }
.bw-group .bw-orb { pointer-events: auto; top: 0; }
.bw-group:focus-visible .bw-orb, .bw-group:hover .bw-orb { outline: 2px solid #fff3ad; filter: brightness(1.16); z-index: 1; }
.bw-orb { display: block; position: absolute; border-radius: 50%; width: 10.55%; aspect-ratio: 1; transform: translateX(-50%); box-shadow: 0 1px 2px #21102b,inset 0 0 0 1px #fff7; background-size: cover; background-color: #9d2649; }
.bw-red { background-image: url('/images/bubble-win/bola-vermelha.webp'); }
.bw-gold { background-image: url('/images/bubble-win/bola-dourada.webp'); }
.bw-blue { background-image: url('/images/bubble-win/bola-azul.webp'); }
.bw-green { background-image: url('/images/bubble-win/bola-verde.webp'); }
.bw-launcher { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 14.5%; aspect-ratio: 1; border: 1px solid #fff1be; background: #182442a8; border-radius: 50%; box-shadow: 0 0 0 3px #fffffe24,0 3px 6px #071b31; }
.bw-launcher i { width: 74%; top: 13%; left: 50%; }
.bw-flying { z-index: 3; bottom: 1.4%; left: 50%; pointer-events: none; }
.bw-aim { position: absolute; bottom: 13%; left: 50%; height: 14%; width: 2px; background: repeating-linear-gradient(to top,#ffedc5bb 0 3px,transparent 3px 9px); transform: rotate(-12deg); transform-origin: bottom; }
.bw-hint { position: absolute; bottom: 9.5%; width: 100%; font-size: 3.35cqw; font-weight: 650; color: #fff8d9; text-shadow: 0 1px 4px #000,0 0 6px #17162a; }
.bw-game-actions { position: absolute; bottom: 1.2%; inset-inline: 5%; display: flex; align-items: center; gap: 2cqw; }
.bw-shot { flex: 1; padding: 2.5cqw 0; min-height: 10.4cqw; border: 1px solid #ffce68; border-top: 3px solid #fff0cf; border-radius: 3.2cqw; color: white; font-size: 3.5cqw; line-height: 1; text-transform: uppercase; letter-spacing: .02em; background: linear-gradient(#e54448,#ad182c 64%,#811326); box-shadow: 0 2px 0 #683219; }
.bw-audio { width: 9.4cqw; height: 9.4cqw; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid #ffffff63; background: #0c1227e8; color: #fff; }
.bw-audio svg { width: 58%; }

/* Guide, reviews and footer */
.bw-guide, .bw-reviews, .bw-last, .bw-footer { padding-inline: 20px; }
.bw-guide { padding-block: 50px 59px; border-block: 1px solid #a99a632e; background: radial-gradient(ellipse at 85% 120%,#12434266,transparent 36%),radial-gradient(ellipse at 17% 0%,#34173142,transparent 37%),linear-gradient(#0b1324,#0a182d); }
.bw-section-head, .bw-last-card, .bw-footer { text-align: center; }
.bw-controller { width: 25px; height: 22px; margin-bottom: 11px; color: #ffd066; }
.bw h2 { color: #f9fbff; font-size: clamp(23px,2.4vw,27px); line-height: 1.2; letter-spacing: -.035em; }
.bw-section-head h2 { text-transform: uppercase; }
.bw-section-head .bw-divider, .bw-last-card .bw-divider { margin: 12px auto 9px; }
.bw-section-head p, .bw-last-card p { color: var(--muted); font-size: 15px; }
.bw-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; max-width: 1052px; margin: 31px auto 0; padding: 0; list-style: none; }
.bw-step { overflow: hidden; border: 1px solid #9c855b55; border-radius: 19px; background: linear-gradient(160deg,#132b4c,#0e1c33); box-shadow: 0 8px 22px #040b1726; }
.bw-step-art { position: relative; height: 83px; overflow: hidden; background: #192742; }
.bw-step-art img { width: 100%; height: 100%; object-fit: cover; }
.bw-step-art span { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #321b18; background: linear-gradient(#fff2ac,#eab33d); box-shadow: 0 0 0 3px #142139,0 3px 8px #0b1025a8; }
.bw-step-copy { padding: 13px 14px 17px; }
.bw-step-copy h3 { font-size: 15px; letter-spacing: -.025em; line-height: 1.38; }
.bw-step-copy p { margin-top: 6px; color: var(--muted); line-height: 1.55; font-size: 14px; }
.bw-reviews { padding-block: 18px 0; }
.bw-quotes { max-width: 690px; margin: 29px auto 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.bw-quote { position: relative; margin: 0; padding: 19px 19px 21px; border: 1px solid #647d9948; border-radius: 20px; background: linear-gradient(155deg,#142846,#0d1b32); box-shadow: inset 0 1px 0 #ffffff09,0 8px 20px #040b1526; }
.bw-quote::before { content: '“'; position: absolute; top: -16px; right: 14px; font: bold 88px Georgia,serif; color: #ffd16a3d; pointer-events: none; }
.bw-stars { color: #ffd16a; font-size: 14px; letter-spacing: 2px; text-shadow: 0 0 9px #ffca674a; }
.bw-quote blockquote { margin: 11px 0 16px; font-size: 15px; line-height: 1.52; }
.bw-quote figcaption { display: flex; gap: 11px; align-items: center; }
.bw-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#ce384c,#94c8ef); font: 900 15px var(--display); }
.bw figcaption b { display: block; font-size: 14px; line-height: 1.2; }
.bw figcaption small { color: #78deb1; font-size: 12px; }
.bw-last { padding-block: 46px 44px; background: radial-gradient(ellipse at 85% 47%,#51203955,transparent 58%); }
.bw-last-card { max-width: 720px; margin: 0 auto; padding: 34px 22px 30px; border-radius: 22px; border: 1px solid #a284485e; background: radial-gradient(ellipse at 50% -10%,#5030436e,transparent 65%),linear-gradient(#192542,#0e2037); box-shadow: 0 12px 30px #03091666; }
.bw-last-card h2 { font-size: 24px; }
.bw-last-card .bw-play { margin-top: 23px; }
.bw-footer { padding-block: 29px 22px; border-top: 1px solid #8d805938; font-size: 13px; color: #c9d9ed; }
.bw-footer img { object-fit: contain; width: 61px; height: 61px; margin: 0 auto 16px; }
.bw-footer small { display: block; color: #94acc9; font-size: 12px; margin-top: 5px; }

@media (max-width: 850px) {
  .bw-steps { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 620px; }
}
@media (max-width: 600px) {
  .bw-hero { --bw-landscape: url('/images/bubble-win/vila-mobile.webp'); min-height: max(650px,100svh); padding: 81px 16px 31px; }
  .bw-header { padding: 9px 12px; }
  .bw-brand { width: 46px; height: 46px; }
  .bw-header nav { gap: 6px; padding-top: 3px; }
  .bw-header a { min-height: 35px; font-size: 11px; padding: 5px 13px; }
  .bw h1 { font-size: clamp(22px,7.1vw,40px); }
  .bw-hero-content > .bw-divider { margin: 9px 0 23px; }
  .bw-preview { width: min(64vw,32svh,270px); }
  .bw-play { min-height: 49px; }
  .bw-hero .bw-play { max-width: 425px; }
  .bw-account { margin-top: 9px; }
  .bw-guide { padding: 38px 16px; }
  .bw-steps { gap: 12px; margin-top: 23px; }
  .bw-step-art { height: clamp(65px,17vw,100px); }
  .bw-step-copy { padding: 10px 11px 14px; }
  .bw-step-copy h3 { font-size: 14px; }
  .bw-step-art span { width: 27px; height: 27px; font-size: 13px; }
  .bw-reviews { padding: 30px 16px 0; }
  .bw-quotes { max-width: 430px; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .bw-quote { padding: 17px 19px; }
  .bw-last { padding: 30px 16px; }
  .bw-last-card { padding: 26px 15px 22px; }
}
@media (max-width: 350px) { .bw-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bw-meter i { transition: none; } }

/* Christmas account pages share their landscape with the public landing. */
#app :is(#page-login,#page-cadastro).active {
  --account-scene: url('/images/bubble-win/vila.webp');
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; min-height: 100svh; padding: 26px 16px;
  background: linear-gradient(180deg,rgba(55,79,110,.22),rgba(30,43,69,.25)), var(--account-scene) center / cover no-repeat;
  color: #e6f0ff; font: 400 15px/1.45 'Segoe UI',Arial,sans-serif;
  isolation: isolate;
}
#app :is(#page-login,#page-cadastro).auth-modal-page.active {
  position: fixed; inset: 0; z-index: 30000; overflow-y: auto;
}
.bw-auth-shell { flex: none; width: min(100%,420px); margin: auto; }
.bw-auth-brand { display: block; width: fit-content; margin: 0 auto 24px; border-radius: 12px; }
.bw-auth-brand img { display: block; width: 102px; height: 102px; object-fit: contain; filter: drop-shadow(0 7px 10px #111e3652); }
.bw-auth-card {
  position: relative; padding: 30px 26px 23px; border: 1px solid #a18d585e; border-radius: 23px;
  background: linear-gradient(166deg,#304260,#28364e 48%,#172139);
  box-shadow: 0 21px 54px #201b3069,0 3px 12px #18202c38,inset 0 1px 0 #ffffff29;
}
.bw-auth-snow { position: absolute; inset: -7px 16px auto; height: 12px; pointer-events: none; filter: drop-shadow(0 2px 2px #0a193a65); }
.bw-auth-snow::before, .bw-auth-snow::after { content: ''; position: absolute; inset: 0; }
.bw-auth-snow::before { bottom: 5px; border-radius: 11px 11px 0 0; background: linear-gradient(#eef5ff,#fff); }
.bw-auth-snow::after { top: 4px; background: radial-gradient(ellipse 7.3px 6px at 50% 0,#fff 98%,transparent) left center/15px 100% repeat-x; }
.bw-auth-holly { position: absolute; width: 54px; height: 36px; top: -28px; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 2px 2px #122b1c80); pointer-events: none; }
.bw-auth-holly i { position: absolute; left: 17px; bottom: 2px; width: 20px; height: 31px; transform-origin: 50% 92%; transform: rotate(13deg);
  background: linear-gradient(84deg,transparent 46%,#b2c657 49%,#528022 54%,transparent 58%),linear-gradient(35deg,#1b4e1b,#65982b 55%,#316e23);
  clip-path: polygon(50% 0,60% 18%,76% 16%,73% 33%,94% 33%,84% 48%,100% 57%,81% 64%,88% 78%,68% 78%,50% 100%,35% 82%,16% 82%,22% 65%,0 58%,16% 48%,7% 31%,29% 34%,26% 16%,41% 20%);
}
.bw-auth-holly i:first-child { transform: rotate(-65deg) scale(.92); }
.bw-auth-holly i:nth-child(3) { transform: rotate(72deg) scale(.88); }
.bw-auth-holly b, .bw-auth-holly b::before, .bw-auth-holly b::after { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 33% 26%,#fff0cf 1%,#ff7458 17%,#ce111b 48%,#820c13 80%); box-shadow: 0 1px 1px #2d131a8c; }
.bw-auth-holly b { left: 22px; bottom: 1px; }
.bw-auth-holly b::before, .bw-auth-holly b::after { content: ''; }
.bw-auth-holly b::before { top: -4px; left: 5px; }
.bw-auth-holly b::after { top: 1px; left: 8px; }
.bw-auth-card h1 { margin: 0; font: 800 26px/1.28 'Poppins','Segoe UI',sans-serif; letter-spacing: -.035em; color: #edf5ff; }
.bw-auth-intro { color: #c5d3e5; margin-top: 4px; font-size: 15px; }
.bw-auth-form { margin-top: 22px; display: grid; gap: 16px; }
.bw-auth-form [hidden] { display: none; }
.bw-auth-field { min-width: 0; }
.bw-auth-field input {
  width: 100%; height: 54px; padding: 0 16px; border: 1px solid #b4ccee25; border-radius: 14px;
  background: #101b30; color: #f3f7ff; font: 400 16px/1.4 'Segoe UI',Arial,sans-serif; transition: border-color .14s;
}
.bw-auth-field input::placeholder { color: #99aac2; opacity: 1; }
.bw-auth-field input:focus { outline: none; border-color: #ffdb78; box-shadow: 0 0 0 2px #ffcf652b; }
.bw-auth-secret { position: relative; }
.bw-auth-secret input { padding-right: 51px; }
.bw-auth-eye { position: absolute; inset: 0 1px 0 auto; width: 44px; border: 0; border-radius: 12px; display: grid; place-items: center; background: transparent; color: #afc2dd; cursor: pointer; }
.bw-auth-eye svg { width: 21px; height: 21px; }
.bw-auth-eye-slash { display: none; }
.bw-auth-eye[aria-pressed="true"] .bw-auth-eye-slash { display: inline; }
.bw-auth-submit { display: block; width: 100%; min-height: 53px; margin-top: 2px; padding: 10px 16px; border: 2px solid #ffca4b; border-radius: 14px; background: linear-gradient(#f0384c,#d02134 58%,#a51425); color: #fff; box-shadow: 0 9px 24px #b2163b4d,inset 0 1px 0 #ffabb647; font: 800 16px/1.3 'Poppins','Segoe UI',sans-serif; letter-spacing: .035em; text-transform: uppercase; cursor: pointer; }
.bw-auth-submit:enabled:hover { filter: brightness(1.08); }
.bw-auth-submit:enabled:active { transform: translateY(1px); }
.bw-auth-submit:disabled { cursor: default; opacity: .68; }
.bw-auth-field input[aria-invalid="true"] { border-color: #ff8991; }
.bw-auth-error { color: #ffbcc6; font-size: 13px; margin: 4px 2px 0; }
.bw-auth-error:empty { display: none; }
.bw-auth-message, .bw-auth-ref { font-size: 13px; border-radius: 9px; padding: 8px 11px; }
.bw-auth-message { background: #58233e; color: #ffe2e5; }
.bw-auth-ref { color: #b4ffda; background: #163f3b; }
.bw-auth-details { color: #cbd9ea; font-size: 12px; }
.bw-auth-strength { display: flex; justify-content: space-between; }
.bw-auth-details meter { display: block; width: 100%; height: 9px; margin: 3px 0 6px; }
.bw-auth-switch { text-align: center; margin: 18px 0 0; color: #becee4; font-size: 14px; line-height: 1.45; }
.bw-auth-switch a { color: #ffda75; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.bw-auth-shell :is(a,button):focus-visible, .auth-modal-close:focus-visible { outline: 2px solid #ffde84; outline-offset: 3px; }
.bw-auth-card .auth-modal-close { position: absolute; top: 9px; right: 10px; width: 34px; height: 34px; background: #142137; border: 1px solid #8a9cb4; color: white; border-radius: 50%; font-size: 21px; cursor: pointer; }
@media (max-width: 600px) {
  #app :is(#page-login,#page-cadastro).active { --account-scene: url('/images/bubble-win/vila-mobile.webp'); }
  .bw-auth-card { padding-inline: 21px; }
  .bw-auth-brand img { width: 88px; height: 88px; }
}
@media (max-width: 360px) {
  .bw-auth-card { padding-inline: 15px; }
  .bw-auth-field input { padding-left: 12px; }
}
@media (max-height: 580px) {
  .bw-auth-brand { margin-bottom: 19px; }
  .bw-auth-brand img { width: 68px; height: 68px; }
}
