/* Shared dialog identity, taken from the purchased game's .card/.ico/.btn.
 * Keep the original font stacks: the game ships no Poppins/Baloo font files.
 * Only presentation; no round, wallet, payment or affiliate behavior here.
 */
/* A sustained game press is input, not a text/image selection gesture.
 * This sheet is also used by the home: scope the rule to the game shell
 * and its tutorial, leaving account fields and Pix-copy controls alone. */
.shell > .game-card, .shell > .game-card *,
.game-tutorial, .game-tutorial * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}
.shell > .game-card :is(input, textarea, [contenteditable]:not([contenteditable="false"])),
.game-tutorial :is(input, textarea, [contenteditable]:not([contenteditable="false"])) {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: initial;
}
:root {
    --sb-font: "Poppins", "Segoe UI", system-ui, Arial, sans-serif;
    --sb-display: "Baloo 2", "Poppins", "Segoe UI", sans-serif;
    --sb-ink: #1c2433;
    --sb-muted: #6a7589;
    --sb-label: #7b869a;
    --sb-surface: linear-gradient(180deg, #ffffff, #eef3fb);
    --sb-stat: #f1f4f9;
    --sb-ghost: #e9edf4;
    --sb-ghost-edge: #cfd6e2;
    --sb-green: linear-gradient(180deg, #8dff9b, #24cf60 55%, #13a849);
    --sb-green-edge: #0c7d34;
    --sb-blue: linear-gradient(180deg, #7cc4ff, #2f7ae5);
    --sb-red: linear-gradient(180deg, #ff7a8a, #ff2d55);
    --sb-gold: linear-gradient(180deg, #ffe27a, #f5a300);
    --sb-shadow: 0 30px 70px rgba(0, 10, 40, .45), inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.curtain {
    z-index: 10;
    padding: max(60px, calc(env(safe-area-inset-top) + 44px)) 16px max(60px, calc(env(safe-area-inset-bottom) + 44px));
    overflow: auto;
    overscroll-behavior: contain;
    background: rgba(6, 14, 40, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color-scheme: light;
}
/* Transparent, non-modal celebration; never blurs or covers the game with a card. */
.phase-pass { position: absolute; inset: 0; z-index: 15; display: grid; place-items: center; pointer-events: none; }
.phase-pass[hidden] { display: none; }
.phase-pass-copy { position: relative; isolation: isolate; width: min(440px, calc(100% - 40px)); text-align: center; color: #fff; animation: sb-phase-rise .48s cubic-bezier(.16,.9,.3,1.2) both; }
.phase-pass-copy::before { content: ""; position: absolute; z-index: -1; inset: -55px -30px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,246,177,.45), rgba(255,236,141,.12) 48%, transparent 70%); }
.phase-stars { position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; height: clamp(54px, 12vmin, 76px); margin-bottom: 10px; }
.phase-stars svg { width: clamp(40px, 9vmin, 58px); height: auto; overflow: visible; fill: #ffce24; stroke: #fff2ad; stroke-width: .65; filter: drop-shadow(0 4px 0 #cd8500) drop-shadow(0 6px 7px rgba(83,47,0,.25)); animation: sb-phase-star .48s cubic-bezier(.2,.8,.3,1.35) .08s both; }
.phase-stars svg:nth-child(2) { width: clamp(56px, 13vmin, 80px); align-self: flex-start; animation-delay: .17s; }
.phase-stars svg:nth-child(3) { animation-delay: .26s; }
.phase-stars::before, .phase-stars::after { content: ""; position: absolute; left: calc(50% - 112px); top: 9px; width: 15px; height: 15px; background: #fff7cf; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 1px 2px #cb8d24); animation: sb-phase-spark .65s ease-out .32s both; }
.phase-stars::after { left: calc(50% + 99px); top: 31px; width: 10px; height: 10px; animation-delay: .48s; }
.phase-pass h2 { margin: 0; font: 900 clamp(40px, 9.2vmin, 62px)/.99 var(--sb-font); letter-spacing: -.035em; -webkit-text-stroke: 1px rgba(16,38,79,.5); paint-order: stroke fill; text-shadow: 0 4px 0 #18375c, 0 7px 0 rgba(10,26,51,.2), 0 10px 20px rgba(0,20,60,.32); }
.phase-pass h2 > span { display: block; margin-bottom: 5px; font-size: .76em; letter-spacing: .08em; }
.phase-pass p { margin: 23px 0 0; }
.phase-prize { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; max-width: 100%; min-width: min(280px, 100%); padding: 15px 24px 19px; overflow: hidden; border: 2px solid #95cdff; border-radius: 24px; background: #10264f linear-gradient(180deg, #237ce5, #1253b8 58%, #10479c); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 7px 0 #0a3475, 0 9px 0 rgba(255,240,162,.8), 0 17px 28px rgba(22,45,74,.3); animation: sb-phase-prize .5s cubic-bezier(.16,.9,.3,1.2) .2s both; }
.phase-prize::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.23) 48%, rgba(255,255,255,.06) 58%, transparent 68%); transform: translateX(-130%); animation: sb-phase-shine .7s ease-out .65s both; }
.phase-prize-label { color: #e3f2ff; font: 750 clamp(14px, 3vmin, 18px)/1.3 var(--sb-font); text-shadow: 0 1px 1px #0a3475; }
.phase-pass strong { color: #ffdf47; font: 900 clamp(46px, 11vmin, 72px)/1.1 var(--sb-font); letter-spacing: -.04em; white-space: nowrap; text-shadow: 0 3px 0 #895507, 0 5px 0 rgba(0,26,79,.35); }
.phase-demo { padding: 4px 6px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; color: #dbe7ff; font: 750 11px/1.2 var(--sb-font); letter-spacing: .06em; text-shadow: none; }
@media (max-height: 650px) and (orientation: portrait) { .phase-pass { padding-top: 80px; } }
@media (max-height: 500px) and (orientation: landscape) {
    .phase-pass { padding-top: 72px; }
    .phase-pass-copy { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 26px; width: min(620px, calc(100% - 48px)); }
    .phase-stars { grid-column: 1; margin-bottom: 6px; height: 48px; }
    .phase-stars svg { width: 35px; }
    .phase-stars svg:nth-child(2) { width: 49px; }
    .phase-stars::before { left: calc(50% - 82px); }
    .phase-stars::after { left: calc(50% + 75px); }
    .phase-pass h2 { grid-column: 1; font-size: 36px; }
    .phase-pass p { grid-column: 2; grid-row: 1 / 3; margin: 0; }
    .phase-prize { min-width: 0; width: 100%; padding: 16px 12px 20px; }
    .phase-pass strong { font-size: 48px; }
}
body.is-phase-pass:not(.is-tutorial) .tutorial-help { visibility: hidden; }
@keyframes sb-phase-rise { from { opacity: 0; transform: translateY(24px) scale(.88); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sb-phase-star { from { opacity: 0; transform: translateY(14px) scale(.3) rotate(-16deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes sb-phase-prize { from { opacity: 0; transform: translateY(14px) scale(.86); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sb-phase-spark { 0% { opacity: 0; transform: scale(.1) rotate(-30deg); } 65% { opacity: 1; transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }
@keyframes sb-phase-shine { to { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .phase-pass-copy, .phase-stars svg, .phase-stars::before, .phase-stars::after, .phase-prize { animation: none; } .phase-prize::after { display: none; } }

/* Keep the original mode/help navigation usable; dim the footer under dialogs. */
body:not(.is-tutorial):has(.curtain:not([hidden])) .metrics { z-index: 9; }
.sb-dialog, .stack-game-theme .modal-card.sb-dialog {
    position: relative;
    width: min(350px, 90vw);
    max-width: 100%;
    max-height: none;
    margin: auto;
    padding: 28px 22px 22px;
    overflow: visible;
    border: 0;
    border-radius: 32px;
    background: var(--sb-surface);
    color: var(--sb-ink);
    font-family: var(--sb-font);
    text-align: center;
    box-shadow: var(--sb-shadow);
    animation: sb-dialog-in .45s cubic-bezier(.2, 1.35, .4, 1);
}
.sb-dialog *, .tutorial-copy * { box-sizing: border-box; }
.sb-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: -62px auto 10px;
    border: 0;
    border-radius: 50%;
    background: var(--sb-blue);
    color: #fff;
    font: 900 34px/1 var(--sb-font);
    box-shadow: 0 0 0 6px #fff, 0 12px 24px rgba(0, 0, 0, .25);
}
.sb-icon--good { background: linear-gradient(180deg, #8dff9b, #13a849); }
.sb-icon--bad { background: var(--sb-red); }
.sb-icon--gold { background: var(--sb-gold); }
.sb-ball-badge { position: relative; width: 74px; height: 74px; margin: -62px auto 10px; pointer-events: none; }
.sb-ball-badge canvas { position: absolute; top: -42px; left: 50%; display: block; width: 96px; height: 116px; transform: translateX(-50%); pointer-events: none; }
.sb-tag, .sb-dialog .modal-chip {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--sb-muted);
    font: 800 11px/1.5 var(--sb-font);
    letter-spacing: 3px;
    text-transform: uppercase;
}
.sb-dialog .sb-title, .sb-dialog .modal-copy h3 {
    margin: 4px 0 0;
    color: var(--sb-ink);
    font: 800 38px/1.05 var(--sb-display);
    letter-spacing: normal;
    text-transform: none;
    text-wrap: balance;
}
.sb-dialog .sb-description, .sb-dialog .modal-copy p {
    margin: 12px 0 0;
    color: var(--sb-muted);
    font: 500 13px/1.5 var(--sb-font);
    letter-spacing: normal;
}
.sb-dialog .sb-description.error { color: #c52a47 !important; }
/* Final free-round celebration, using the native win card's stars, score and action. */
#signupCurtain { padding-top: max(72px, calc(env(safe-area-inset-top) + 60px)); padding-bottom: max(30px, calc(env(safe-area-inset-bottom) + 24px)); }
#signupCurtain .sb-dialog { width: min(360px, calc(100vw - 32px)); padding: 26px 22px 24px; }
#signupCurtain .sb-ball-badge { margin-bottom: 8px; }
#signupCurtain .sb-ball-badge canvas { top: -54px; width: 96px; height: 116px; }
#signupCurtain .sb-tag { color: #617087; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
#signupCurtain .sb-title { margin-top: 5px; font-size: 38px; letter-spacing: -.025em; }
#signupCurtain .signup-stars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 54px; margin: 12px 0 8px; }
#signupCurtain .signup-stars svg { display: block; width: 36px; height: 36px; overflow: visible; fill: #ffc21a; filter: drop-shadow(0 3px 0 #d08a00); animation: sb-signup-star .5s cubic-bezier(.2,1.6,.4,1) .1s both; }
#signupCurtain .signup-stars svg:nth-child(2) { width: 54px; height: 54px; animation-delay: .2s; }
#signupCurtain .signup-stars svg:nth-child(3) { animation-delay: .3s; }
#signupCurtain .signup-potential { margin: 0; padding: 0 0 6px; background: none; color: var(--sb-muted); font: 500 12px/1.4 var(--sb-font); }
#signupCurtain .signup-potential strong { display: block; margin-top: 5px; color: #ffc21a; font: 900 clamp(44px,13vw,56px)/1.08 var(--sb-font); letter-spacing: -.045em; overflow-wrap: anywhere; -webkit-text-stroke: .6px rgba(173,111,0,.32); paint-order: stroke fill; text-shadow: 0 3px 0 #d08a00, 0 6px 0 rgba(28,36,51,.1); }
#signupCurtain #signupInvite { margin: 16px auto 0; max-width: 290px; color: #45546a; font: 400 14px/1.5 var(--sb-font); text-wrap: balance; }
#signupCurtain .signup-invite-lead { display: block; color: var(--sb-ink); font-size: 17px; font-weight: 750; line-height: 1.35; }
#signupCurtain .signup-invite-detail { display: block; margin-top: 5px; }
#signupCurtain .signup-pix { display: flex; flex-direction: column; align-items: center; gap: 3px; margin: 16px auto 0; padding: 10px 12px; border-radius: 16px; background: var(--sb-stat); color: #657186; font: 750 10px/1.45 var(--sb-font); letter-spacing: .09em; text-transform: uppercase; text-wrap: balance; }
#signupCurtain .signup-pix strong { display: block; color: var(--sb-ink); font-size: 14px; font-weight: 800; line-height: 1.3; letter-spacing: .08em; }
#signupCurtain .signup-cta { position: relative; isolation: isolate; min-height: 56px; margin-top: 18px; overflow: hidden; font-size: 15px; letter-spacing: 1.2px; transform-origin: center; }
#signupCurtain .signup-cta > span { position: relative; z-index: 1; }
#signupCurtain:not([hidden]) .signup-cta { animation: sb-signup-pulse 2.4s ease-in-out infinite; }
#signupCurtain .signup-cta::after { content: ""; position: absolute; z-index: 0; inset: 0 auto 0 0; width: 42%; background: linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent); transform: translateX(-180%) skewX(-18deg); pointer-events: none; }
#signupCurtain:not([hidden]) .signup-cta::after { animation: sb-signup-shine 3.6s ease-in-out .7s infinite; }
#signupCurtain .signup-cta:active { animation: none; transform: translateY(3px) scale(.99); }
@keyframes sb-signup-star { from { opacity: 0; transform: scale(.35) rotate(-18deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes sb-signup-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes sb-signup-shine { 0%,55% { transform: translateX(-180%) skewX(-18deg); } 88%,100% { transform: translateX(430%) skewX(-18deg); } }
@media (max-width: 360px) {
    #signupCurtain .sb-dialog { padding-right: 18px; padding-left: 18px; }
    #signupCurtain .signup-invite-lead { font-size: 16px; }
    #signupCurtain .signup-cta { font-size: 14px; }
}
@media (max-height: 620px) {
    #signupCurtain .sb-dialog { padding-top: 22px; padding-bottom: 20px; }
    #signupCurtain .sb-ball-badge { margin-bottom: 4px; }
    #signupCurtain .sb-title { font-size: 30px; }
    #signupCurtain .signup-stars { height: 40px; margin: 8px 0 6px; }
    #signupCurtain .signup-stars svg { width: 28px; height: 28px; }
    #signupCurtain .signup-stars svg:nth-child(2) { width: 40px; height: 40px; }
    #signupCurtain .signup-potential strong { font-size: 44px; }
    #signupCurtain #signupInvite { margin-top: 12px; }
    #signupCurtain .signup-invite-lead { font-size: 16px; }
    #signupCurtain .signup-invite-detail { margin-top: 4px; }
    #signupCurtain .signup-pix { margin-top: 12px; padding-top: 8px; padding-bottom: 8px; }
    #signupCurtain .signup-cta { min-height: 50px; margin-top: 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    #signupCurtain .signup-stars svg, #signupCurtain .signup-cta, #signupCurtain .signup-cta::after { animation: none !important; }
    #signupCurtain .signup-cta::after { display: none; }
}
.sb-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 16px;
}
.sb-stats > div { min-width: 0; padding: 10px 4px; border-radius: 16px; background: var(--sb-stat); }
.sb-stats small { display: block; color: var(--sb-label); font: 800 9.5px/1.5 var(--sb-font); letter-spacing: 1.5px; text-transform: uppercase; }
.sb-stats b { display: block; color: var(--sb-ink); font: 900 19px/1.3 var(--sb-font); }
.sb-stats .sb-money { font-size: 15px; line-height: 24.7px; overflow-wrap: anywhere; }
.sb-dialog .primary, .sb-dialog .secondary, .sb-button,
.stack-game-theme .sb-dialog .modal-primary, .stack-game-theme .sb-dialog .modal-secondary,
.stack-game-theme .sb-dialog .minions-mode-actions a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 16px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--sb-green);
    color: #fff;
    font: 900 16px/1.2 var(--sb-font);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 5px 0 var(--sb-green-edge), 0 12px 22px rgba(0, 0, 0, .18);
    transition: transform .1s;
}
.sb-dialog .secondary, .sb-button--ghost,
.stack-game-theme .sb-dialog .modal-secondary,
.stack-game-theme .sb-dialog .minions-mode-actions a + a {
    margin-top: 12px;
    background: var(--sb-ghost);
    color: var(--sb-ink);
    box-shadow: 0 4px 0 var(--sb-ghost-edge);
}
.sb-dialog :is(.primary, .secondary, .sb-button, .modal-primary, .modal-secondary):active { transform: translateY(3px); }
.sb-dialog :is(.primary, .secondary, .sb-button, .modal-primary, .modal-secondary):disabled { opacity: .58; cursor: wait; filter: grayscale(.35); transform: none; }
.sb-dialog :is(button, a, input):focus-visible { outline: 3px solid #2f7ae5; outline-offset: 4px; }
.sb-dialog .sb-note { margin: 16px 0 0; color: var(--sb-muted); font: 500 10px/1.5 var(--sb-font); }
.stack-game-theme .modal-shell:has(.sb-dialog) {
    padding: max(60px, calc(env(safe-area-inset-top) + 44px)) 16px max(24px, env(safe-area-inset-bottom));
    color-scheme: light;
}
.stack-game-theme .modal-shell:has(.sb-dialog) .modal-backdrop {
    position: fixed;
    background: rgba(6, 14, 40, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.stack-game-theme .modal-shell:has(.sb-dialog) .modal-backdrop::before,
.stack-game-theme .modal-shell:has(.sb-dialog) .modal-backdrop::after { display: none; }
.stack-game-theme .sb-dialog .modal-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--sb-ghost);
    color: var(--sb-muted);
    font: 800 22px/1 var(--sb-font);
    transform: none;
}
.stack-game-theme .sb-dialog .modal-copy { display: block; padding: 0; }
.stack-game-theme .sb-dialog .modal-actions { display: grid; gap: 0; margin-top: 20px; }
.stack-game-theme .sb-dialog .minions-mode-actions { display: block; margin-top: 20px; }
.stack-game-theme .sb-dialog :is(.demo-modal-cta, .affiliate-demo-cta) { max-width: none; animation: none; }
.sb-form { display: grid; gap: 12px; margin-top: 20px; }
.stack-game-theme .sb-field { position: relative; display: flex; align-items: center; gap: 0; min-height: 50px; overflow: visible; border-radius: 16px; background: var(--sb-stat); }
.stack-game-theme .sb-field .register-field-icon { display: grid; flex: 0 0 42px; place-items: center; color: var(--sb-label); font-size: 0; }
.stack-game-theme .sb-field .register-field-icon::before, .stack-game-theme .sb-field .register-field-suffix::before {
    content: ''; display: block; width: 18px; height: 18px; background: var(--sb-label);
    mask: var(--sb-field-icon) center / contain no-repeat;
    -webkit-mask: var(--sb-field-icon) center / contain no-repeat;
}
.sb-field:has(input[type="email"]) { --sb-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.sb-field:has(input[data-password-toggle-input]) { --sb-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='5' y='10' width='14' height='11' rx='3'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3m-4 5v2'/%3E%3C/svg%3E"); }
.sb-field:has(input[name="register_cpf"]) { --sb-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E"); }
.sb-field:has(input[name="register_phone"]) { --sb-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M10 5h4m-3 14h2'/%3E%3C/svg%3E"); }
.stack-game-theme .sb-field input {
    width: 100%; min-width: 0; min-height: 50px; padding: 0 12px 0 0; border: 0; border-radius: 16px;
    background: transparent; color: var(--sb-ink); font: 600 16px var(--sb-font); box-shadow: none;
}
.stack-game-theme .sb-field input::placeholder { color: var(--sb-label); opacity: 1; }
.stack-game-theme .sb-field input:focus { outline: none; box-shadow: none; }
.stack-game-theme .sb-field:focus-within { outline: 2px solid #2f7ae5; outline-offset: 2px; }
.stack-game-theme .sb-field:has(.register-field-suffix) input { padding-right: 42px; }
.stack-game-theme .sb-field .register-field-suffix { position: absolute; top: 50%; right: 12px; padding: 0; border: 0; background: none; color: var(--sb-muted); font-size: 0; transform: translateY(-50%); cursor: pointer; }
.stack-game-theme .sb-field .register-field-suffix::before { --sb-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.stack-game-theme .sb-field .register-field-suffix[aria-pressed="true"]::before { --sb-field-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Zm1-9 18 18'/%3E%3C/svg%3E"); }
.stack-game-theme .sb-form .register-terms { margin: 2px 0; color: var(--sb-muted); font: 500 10px/1.5 var(--sb-font); text-align: center; }
.stack-game-theme .sb-form .register-terms strong { color: var(--sb-ink); }
.stack-game-theme .sb-form .register-login-copy { margin: 8px 0 0; color: var(--sb-muted); font: 500 12px/1.5 var(--sb-font); text-align: center; }
.stack-game-theme .sb-form .text-link-button { color: #1c66cb; font: 800 12px var(--sb-font); }
.stack-game-theme .sb-form .register-feedback--error { border-color: #f1b5c0; background: #ffeaf0; color: #b92340; }
@keyframes sb-dialog-in { from { transform: translateY(24px) scale(.9); opacity: 0; } }
@media (max-width: 360px) {
    .sb-dialog .primary, .sb-dialog .secondary, .sb-button { padding-left: 12px; padding-right: 12px; font-size: 14px; }
    .sb-stats .sb-money { font-size: 12px; white-space: nowrap; }
}
@media (max-height: 620px) {
    .curtain { padding-top: max(50px, calc(env(safe-area-inset-top) + 44px)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .curtain .sb-dialog { padding-bottom: 18px; }
    .curtain .sb-title { font-size: 30px; }
    .curtain .sb-description { margin-top: 10px; font-size: 12px; }
    .curtain .sb-stats { margin: 14px 0; }
    .curtain .sb-dialog :is(.primary, .secondary) { min-height: 46px; padding: 13px 12px; font-size: 13px; }
    .curtain .sb-dialog .sb-note { margin-top: 12px; }
    .stack-game-theme .modal-card.sb-dialog:has(.sb-form) { padding-bottom: 18px; }
    .sb-form { gap: 9px; margin-top: 16px; }
    .stack-game-theme .sb-form .register-login-copy { margin-top: 4px; }
}
@media (max-width: 360px) and (max-height: 620px) {
    .curtain .sb-dialog :is(.primary, .secondary) { font-size: 12px; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) {
    .sb-dialog, .stack-game-theme .modal-card.sb-dialog { animation: none; }
    .sb-dialog :is(button, a) { transition: none; }
}
