/* Página de remarketing das clínicas: roleta, raspadinha e quiz jogáveis.
   Vem depois de lux.css e reaproveita o cartão da roleta (.spin-card) — os três jogos
   têm a mesma moldura de ônix para parecerem uma família, como no produto. */

.games-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.games-hero-chat { margin: 0 auto; width: 340px; max-width: 100%; border: 1px solid rgba(169, 132, 74, .45); border-radius: 22px; box-shadow: 0 40px 80px rgba(20, 16, 13, .22); outline: 6px solid rgba(251, 248, 244, .9); }
.games-hero-chat .chat-top { background: #1f2c27; }
.games-hero-chat .chat-body { height: 520px; font-size: .82rem; }

.games-pick { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 38px; border-top: 1px solid var(--line); }
.games-pick a { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; padding: 14px 10px 14px 12px; color: inherit; text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.games-pick a:nth-child(4n+1) { padding-left: 0; }
.games-pick a:nth-child(4n) { border-right: 0; }
.games-pick a:nth-child(n+5) { border-bottom: 0; }
.games-pick b { font-family: var(--font-display); font-weight: 400; font-size: 1rem; line-height: 1.2; color: var(--ink); }
.games-pick small { grid-column: 2; font-size: .76rem; color: var(--muted); }
.games-pick a:hover b { color: var(--champagne); }
.games-pick__ico { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; }
.games-pick__ico--wheel { background: conic-gradient(#14100d 0 60deg, #ece3d7 60deg 120deg, #a9844a 120deg 180deg, #fbf8f4 180deg 240deg, #2a211c 240deg 300deg, #e8d6cc 300deg); border: 2px solid var(--champagne-2); }
.games-pick__ico--scratch { border-radius: 4px; background: repeating-linear-gradient(135deg, #c9ab7c 0 6px, #a9844a 6px 12px); }
.games-pick__ico--quiz { display: grid; place-items: center; background: var(--onyx); color: var(--champagne-2); font: italic 1.1rem var(--font-display); }
.games-pick__ico--quiz::before { content: "?"; }
.games-pick__ico--gift { border-radius: 5px; background: linear-gradient(90deg, transparent 43%, var(--champagne-2) 43% 57%, transparent 57%), linear-gradient(180deg, #2a211c 0 34%, var(--champagne-2) 34% 44%, var(--onyx) 44%); }
.games-pick__ico--slot { border-radius: 6px; background: repeating-linear-gradient(90deg, var(--onyx) 0 3px, var(--champagne-2) 3px 9px, var(--onyx) 9px 10px); box-shadow: inset 0 0 0 3px var(--onyx); }
.games-pick__ico--plinko { background: radial-gradient(circle, var(--champagne) 2px, transparent 2.5px) 0 0 / 8px 8px, var(--porcelain); border: 1px solid var(--champagne-2); }
.games-pick__ico--claw { display: grid; place-items: center; background: var(--onyx); color: var(--champagne-2); font: 1rem var(--font-display); }
.games-pick__ico--claw::before { content: "⌄"; line-height: .6; }
.games-pick__ico--group { background: radial-gradient(circle at 30% 60%, var(--champagne) 5px, transparent 5.5px), radial-gradient(circle at 70% 60%, var(--champagne-2) 5px, transparent 5.5px), radial-gradient(circle at 50% 35%, var(--onyx) 5.5px, transparent 6px), var(--porcelain); border: 1px solid var(--line); }

/* ------------------------------------------------------------------ seção de cada jogo */
.game { overflow: hidden; }
.game--soft { background: linear-gradient(180deg, var(--ivory), var(--porcelain)); }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.game-grid--flip .game-copy { order: 2; }
.game-copy h2 { margin-bottom: 20px; }
.game-copy > p { margin-bottom: 26px; font-size: 1.05rem; line-height: 1.75; }
.game-num { display: block; font-family: var(--font-display); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--champagne); margin-bottom: 18px; }

/* ------------------------------------------------------------------ raspadinha */
.scratch-card, .quiz-card { position: relative; max-width: 460px; margin: 0 auto; padding: 64px 34px 34px; background: var(--onyx); border-radius: 28px; text-align: center; color: var(--ivory); box-shadow: 0 40px 80px rgba(20, 16, 13, .28); outline: 6px solid rgba(251, 248, 244, .9); }
.scratch-card.is-done .spin-hint { opacity: 0; }
.scratch-ticket { background: var(--porcelain); color: var(--espresso); border-radius: 14px; padding: 16px; box-shadow: inset 0 0 0 1px rgba(169, 132, 74, .4); }
.scratch-ticket__head { display: flex; align-items: center; justify-content: center; gap: 8px; font: 500 .7rem var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--champagne); margin-bottom: 12px; }
.scratch-ticket__foot { margin-top: 12px; font-size: .74rem; color: var(--muted); }
.scratch-area { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff, var(--ivory)); border: 1px dashed var(--champagne-2); }
.scratch-prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; }
.scratch-prize small { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); }
.scratch-prize strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 4vw, 1.8rem); line-height: 1.15; margin: 6px 0 10px; color: var(--onyx); }
.scratch-prize code { font: 500 .78rem var(--font); letter-spacing: .2em; padding: 5px 12px; border: 1px dashed var(--champagne); color: var(--champagne); }
.scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .6s ease; }
.scratch-card.is-done .scratch-canvas { opacity: 0; pointer-events: none; }
.scratch-actions { margin-top: 6px; }
.scratch-after:not([hidden]) { animation: msgIn .5s both; margin-top: 18px; }

/* ------------------------------------------------------------------ quiz */
.quiz-card { min-height: 520px; display: flex; flex-direction: column; }
.quiz-progress { height: 3px; background: rgba(251, 248, 244, .14); border-radius: 3px; overflow: hidden; margin-bottom: 26px; }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--champagne-2); transition: width .4s ease; }
.quiz-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.quiz-body > * { animation: msgIn .45s both; }
.quiz-step { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne-2); }
.quiz-q { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; margin: 10px 0 22px; color: var(--ivory); }
.quiz-opts { display: grid; gap: 10px; text-align: left; }
.quiz-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: rgba(251, 248, 244, .05); border: 1px solid rgba(201, 171, 124, .35); border-radius: 12px; color: var(--ivory); font: 400 .95rem var(--font); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.quiz-opt:hover, .quiz-opt:focus-visible { background: rgba(201, 171, 124, .14); border-color: var(--champagne-2); outline: none; }
.quiz-opt.is-picked { background: var(--champagne-2); color: var(--onyx); border-color: var(--champagne-2); }
.quiz-opt span { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; font-size: .74rem; opacity: .8; }
.quiz-result small { display: block; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne-2); }
.quiz-result strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; line-height: 1.2; margin: 6px 0 12px; }
.quiz-result p { font-size: .92rem; line-height: 1.6; color: rgba(251, 248, 244, .8); margin: 0 auto 18px; max-width: 360px; }
.quiz-gift { display: inline-flex; flex-direction: column; gap: 6px; padding: 12px 18px; border: 1px dashed var(--champagne-2); border-radius: 12px; }
.quiz-gift b { font-weight: 500; font-size: .92rem; }
.quiz-gift code { font: 500 .76rem var(--font); letter-spacing: .2em; color: var(--champagne-2); }
.quiz-note { margin-top: 16px; font-size: .78rem; color: rgba(251, 248, 244, .55); }

.games-steps { grid-template-columns: repeat(4, 1fr); }
.games-steps .remk-step { padding: 30px 24px 26px; border-bottom: 0; border-left: 1px solid var(--line); }
.games-steps .remk-step:first-child { border-left: 0; padding-left: 0; }

@media (max-width: 960px) {
    .game-grid { grid-template-columns: 1fr; gap: 48px; }
    .game-grid--flip .game-copy { order: 0; }
    .games-steps { grid-template-columns: 1fr 1fr; }
    .games-steps .remk-step:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 640px) {
    .games-pick { grid-template-columns: 1fr 1fr; }
    .games-pick a, .games-pick a:nth-child(4n+1) { padding: 12px 8px 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .games-pick a:nth-child(odd) { border-right: 1px solid var(--line); }
    .games-pick a:nth-child(even) { padding-left: 12px; }
    .games-pick a:nth-child(n+7) { border-bottom: 0; }
    .scratch-card, .quiz-card { padding: 60px 18px 26px; }
    .quiz-card { min-height: 480px; }
    .quiz-q { font-size: 1.3rem; }
    .games-steps { grid-template-columns: 1fr; }
    .games-steps .remk-step, .games-steps .remk-step:first-child { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .games-steps .remk-step:last-child { border-bottom: 0; }
    .games-hero-chat .chat-body { height: 460px; }
}

/* O aviso do topo é uma linha só no cartão da roleta; nos cartões estreitos ele quebra */
@media (max-width: 480px) {
    .scratch-card .spin-hint, .quiz-card .spin-hint, .game .spin-card .spin-hint { width: calc(100% - 36px); white-space: normal; line-height: 1.5; }
}

/* Botão de ônix dentro do cartão de ônix some: aqui ele vira champanhe */
.game .spin-cta { background: var(--champagne-2); color: var(--onyx); }
.game .spin-cta:hover { background: #d9bf91; color: var(--onyx); }

/* ------------------------------------------------------------------ mais sorteios (abas) */
.game-note { margin-top: 22px; font-size: .92rem; line-height: 1.65; color: var(--muted); }
.game-copy .list b { font-weight: 500; color: var(--ink); }
.more-card { position: relative; max-width: 460px; margin: 0 auto; padding: 22px 30px 34px; background: var(--onyx); border-radius: 28px; text-align: center; color: var(--ivory); box-shadow: 0 40px 80px rgba(20, 16, 13, .28); outline: 6px solid rgba(251, 248, 244, .9); }
.more-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid rgba(201, 171, 124, .3); border-radius: 999px; }
.more-tabs button { padding: 8px 4px; border: 0; border-radius: 999px; background: none; color: rgba(251, 248, 244, .7); font: 500 .74rem var(--font); letter-spacing: .04em; cursor: pointer; }
.more-tabs button[aria-selected="true"] { background: var(--champagne-2); color: var(--onyx); }
.more-tabs button:focus-visible { outline: 2px solid var(--champagne-2); outline-offset: 2px; }
.more-panel { min-height: 410px; display: flex; flex-direction: column; justify-content: center; }
.more-panel[hidden] { display: none; }
.more-hint { display: block; margin-bottom: 14px; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne-2); }
.more-panel .spin-reveal { margin-top: 18px; }

/* presente surpresa */
.gift-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 30px 0 10px; }
.gift { position: relative; height: 120px; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .4s, transform .3s; }
.gift:hover:not(:disabled) { transform: translateY(-4px); }
.gift:focus-visible { outline: 2px solid var(--champagne-2); outline-offset: 6px; border-radius: 8px; }
.gift__body { position: absolute; left: 8%; right: 8%; bottom: 0; height: 66%; border-radius: 4px; background: linear-gradient(90deg, transparent 43%, var(--champagne-2) 43% 57%, transparent 57%), linear-gradient(160deg, #3a2e27, #1f1915); box-shadow: inset 0 0 0 1px rgba(201, 171, 124, .35); }
.gift__lid { position: absolute; left: 2%; right: 2%; bottom: 62%; height: 18%; border-radius: 4px; background: linear-gradient(90deg, transparent 43%, var(--champagne) 43% 57%, transparent 57%), linear-gradient(160deg, #4a3b31, #2a211c); box-shadow: inset 0 0 0 1px rgba(201, 171, 124, .45); transition: transform .5s cubic-bezier(.3,1.6,.5,1); transform-origin: 10% 100%; z-index: 1; }
.gift__lid::before, .gift__lid::after { content: ""; position: absolute; bottom: 100%; width: 22px; height: 14px; border: 3px solid var(--champagne); border-radius: 50% 50% 0 50%; }
.gift__lid::before { right: 50%; }
.gift__lid::after { left: 50%; transform: scaleX(-1); }
.gift.is-dim { opacity: .3; }
.gift.is-shaking { animation: giftShake .3s ease-in-out 3; }
.gift.is-open .gift__lid { transform: translate(-6px, -26px) rotate(-24deg); }
.gift.is-open .gift__body::after { content: "✦"; position: absolute; left: 50%; top: -18px; transform: translateX(-50%); color: var(--champagne-2); font-size: 1.6rem; animation: msgIn .4s both; }
@keyframes giftShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* caça-níquel */
.slot { padding: 18px; border-radius: 18px; background: linear-gradient(180deg, #2a211c, #1a1512); box-shadow: inset 0 0 0 1px rgba(201, 171, 124, .4); }
.slot__reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot__reel { height: 64px; overflow: hidden; border-radius: 10px; background: var(--porcelain); box-shadow: inset 0 8px 10px -6px rgba(0, 0, 0, .35), inset 0 -8px 10px -6px rgba(0, 0, 0, .35); }
.slot__strip span { display: grid; place-items: center; height: 64px; font-size: 1.9rem; color: var(--onyx); }
.slot__strip span:nth-child(odd) { color: var(--champagne); }
.slot__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 14px; font-size: .72rem; color: rgba(251, 248, 244, .65); }
.more-panel .spin-cta[hidden] { display: none; }

/* plinko */
.plinko { width: 100%; max-width: 320px; margin: 0 auto; display: block; }
.plinko__pin { fill: var(--champagne-2); }
.plinko__ball { fill: var(--ivory); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.plinko__slot rect { fill: rgba(201, 171, 124, .12); stroke: rgba(201, 171, 124, .45); }
.plinko__slot.is-empty rect { fill: rgba(251, 248, 244, .03); stroke: rgba(251, 248, 244, .15); }
.plinko__slot.is-hit rect { fill: var(--champagne-2); }
.plinko__slot.is-hit text { fill: var(--onyx); }
.plinko__ico { fill: var(--champagne-2); font-size: 14px; }
.plinko__lbl { fill: rgba(251, 248, 244, .7); font: 500 7.5px var(--font); }

/* máquina de garra */
.claw-box { position: relative; height: 260px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(201, 171, 124, .1), rgba(201, 171, 124, .02)); box-shadow: inset 0 0 0 1px rgba(201, 171, 124, .35); }
.claw-box::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 3px; background: rgba(201, 171, 124, .5); }
.claw { position: absolute; top: 12px; left: 50%; width: 36px; margin-left: -18px; z-index: 2; }
.claw.is-moving { transition: left .4s ease; }
.claw__rope { display: block; width: 2px; height: 26px; margin: 0 auto; background: var(--champagne-2); transition: height .7s ease; }
.claw__hand { position: relative; display: block; height: 18px; }
.claw__hand::before, .claw__hand::after { content: ""; position: absolute; top: 0; width: 15px; height: 20px; border: 3px solid var(--champagne-2); border-top: 0; transition: transform .3s; }
.claw__hand::before { left: 2px; border-right: 0; border-radius: 0 0 0 14px; transform: rotate(18deg); transform-origin: top right; }
.claw__hand::after { right: 2px; border-left: 0; border-radius: 0 0 14px 0; transform: rotate(-18deg); transform-origin: top left; }
.claw.is-closed .claw__hand::before { transform: rotate(-4deg); }
.claw.is-closed .claw__hand::after { transform: rotate(4deg); }
.claw-exit { position: absolute; left: 0; bottom: 0; width: 18%; height: 46px; display: grid; place-items: center; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne-2); border-top: 1px dashed rgba(201, 171, 124, .5); border-right: 1px dashed rgba(201, 171, 124, .5); }
.claw-floor { position: absolute; left: 0; right: 0; bottom: 10px; height: 34px; }
.capsule { position: absolute; bottom: 0; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: linear-gradient(180deg, rgba(251, 248, 244, .85) 0 48%, var(--cap) 48%); box-shadow: inset 0 0 0 1px rgba(20, 16, 13, .25), 0 4px 8px rgba(0, 0, 0, .35); }

/* ------------------------------------------------------------------ monte seu grupo */
.group-card { position: relative; max-width: 460px; margin: 0 auto; padding: 64px 30px 32px; background: var(--onyx); border-radius: 28px; text-align: center; color: var(--ivory); box-shadow: 0 40px 80px rgba(20, 16, 13, .28); outline: 6px solid rgba(251, 248, 244, .9); }
.group-head small { display: block; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--champagne-2); }
.group-head strong { display: block; margin-top: 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.25; }
.group-seats { display: flex; justify-content: center; gap: 10px; margin: 24px 0 18px; }
.seat { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px dashed rgba(201, 171, 124, .5); color: rgba(201, 171, 124, .7); font: 500 .95rem var(--font); }
.seat.is-host { border: 2px solid var(--champagne-2); background: var(--champagne-2); color: var(--onyx); }
.seat.is-in { border: 1px solid var(--champagne-2); background: rgba(201, 171, 124, .18); color: var(--ivory); animation: msgIn .4s both; }
.group-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.group-tiers span { padding: 10px 6px; border-radius: 12px; border: 1px solid rgba(201, 171, 124, .25); font-size: .72rem; color: rgba(251, 248, 244, .6); transition: background .3s, color .3s; }
.group-tiers b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--champagne-2); }
.group-tiers span.is-on { background: var(--champagne-2); color: var(--onyx); border-color: var(--champagne-2); }
.group-tiers span.is-on b { color: var(--onyx); }
.group-unlock { margin-top: 20px; padding: 14px; border: 1px dashed var(--champagne-2); border-radius: 14px; }
.group-unlock:not([hidden]) { animation: msgIn .45s both; }
.group-unlock small { display: block; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--champagne-2); }
.group-unlock strong { display: block; margin: 4px 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.group-unlock code { font: 500 .76rem var(--font); letter-spacing: .2em; color: var(--champagne-2); }
.group-card .spin-cta[hidden] { display: none; }
.group-note { margin-top: 14px; font-size: .8rem; }

/* ------------------------------------------------------------------ indique e ganhe */
.refer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.refer-grid h2 { margin-bottom: 18px; }
.refer-grid p { font-size: 1.02rem; line-height: 1.75; }
.refer-steps { list-style: none; margin: 0; padding: 0; counter-reset: refer; }
.refer-steps li { position: relative; padding: 18px 0 18px 54px; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.6; color: var(--muted); counter-increment: refer; }
.refer-steps li:last-child { border-bottom: 0; }
.refer-steps li::before { content: counter(refer, lower-roman) "."; position: absolute; left: 0; top: 14px; font: italic 1.6rem var(--font-display); color: var(--champagne); }
.refer-steps b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }

@media (max-width: 960px) {
    .refer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
    .more-card { padding: 18px 16px 26px; }
    .more-tabs button { font-size: .68rem; letter-spacing: 0; }
    .more-panel { min-height: 380px; }
    .gift { height: 96px; }
    .group-card { padding: 60px 18px 26px; }
    .seat { width: 38px; height: 38px; }
    .group-seats { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .gift.is-shaking { animation: none; }
}
