:root {
    --bg: #020805;
    --card: #07110c;
    --soft: #0a1710;
    --green: #28f064;
    --green-dark: #0d5428;
    --white: #fff;
    --muted: #9ca3af;
    --yellow: #ffd000;
    --danger: #ff6868;
    --line: rgba(40, 240, 100, 0.22);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* {
    box-sizing: border-box;
}
html {
    color-scheme: dark;
    width: 100%;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: radial-gradient(circle at 50% -10%, rgba(13, 84, 40, 0.52), transparent 34rem),
        linear-gradient(180deg, #020805, #010302);
    color: var(--white);
    font-family: var(--font);
    line-height: 1.5;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 34px 34px;
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: var(--green);
    text-decoration: none;
}
button,
input {
    font: inherit;
}
a,
button,
input,
label {
    touch-action: manipulation;
}
input,
select,
textarea {
    font-size: 16px;
}
.skip-link {
    position: fixed;
    z-index: 100;
    top: -80px;
    left: 12px;
    padding: 10px 15px;
    border-radius: 10px;
    background: #fff;
    color: #000;
}
.skip-link:focus {
    top: 12px;
}
.app-shell {
    position: relative;
    width: min(100%, 560px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 18px 28px;
}
.eyebrow {
    display: block;
    color: var(--green);
    font-size: 0.67rem;
    font-weight: 950;
    letter-spacing: 0.16em;
}
.card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(8, 24, 15, 0.98), rgba(3, 10, 6, 0.98));
    box-shadow:
        0 18px 52px rgba(0, 0, 0, 0.42),
        0 0 30px rgba(40, 240, 100, 0.05);
}
.landing-portrait {
    position: relative;
    isolation: isolate;
    width: 100vw;
    max-width: 560px;
    height: clamp(370px, 85vw, 510px);
    margin-left: 50%;
    overflow: hidden;
    background: #000;
    transform: translateX(-50%);
}
.portrait-photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.portrait-shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3)),
        linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.18) 60%, var(--bg) 97%);
}
.portrait-logo {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: -8px;
    width: clamp(174px, 54vw, 250px);
    height: auto;
    transform: translateX(-50%);
}
.landing-copy {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 4px;
}
.landing-copy h1,
.page-intro h1 {
    text-align: center;
    margin: 8px 0;
    font-size: clamp(2.15rem, 10vw, 3.25rem);
    line-height: 0.98;
    letter-spacing: -0.052em;
}
.landing-copy p,
.page-intro p {
    margin: 0;
    color: #bdc6c0;
}
.lead-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    padding: 20px;
}
.lead-card label {
    font-size: 0.85rem;
    font-weight: 900;
}
.lead-card input {
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    border: 1px solid rgba(156, 163, 175, 0.25);
    border-radius: 15px;
    background: #020805;
    color: #fff;
    outline: none;
}
.lead-card input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(40, 240, 100, 0.09);
}
.lead-card small {
    color: var(--muted);
    font-size: 0.72rem;
}
.primary-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1ddd57, var(--green));
    box-shadow: 0 13px 30px rgba(40, 240, 100, 0.18);
    color: #001b08;
    font-weight: 950;
    cursor: pointer;
}
.primary-button:focus-visible,
.secondary-link:focus-visible,
input:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}
.form-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 104, 104, 0.1);
    color: #ffc1c1;
    font-size: 0.78rem;
}
.privacy-copy {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.67rem;
    text-align: center;
}
.flow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0 8px;
}
.flow-header img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}
.flow-header div {
    display: flex;
    flex-direction: column;
}
.flow-header span {
    color: var(--muted);
    font-size: 0.69rem;
}
.flow-header strong {
    font-size: 0.95rem;
}
.credit-button {
    display: inline-flex;
    min-width: 108px;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid rgba(40, 240, 100, 0.72);
    border-radius: 999px;
    background: linear-gradient(135deg, #18c94c, var(--green));
    box-shadow: 0 8px 22px rgba(40, 240, 100, 0.2);
    color: #001b08;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.07em;
}
.credit-button:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}
.header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
}
.simulator-topbar .credit-button {
    min-width: 112px;
    min-height: 44px;
    padding-right: 13px;
    padding-left: 13px;
}

/* Tutorial de instalação do PWA. */
.install-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 0 10px;
}
.install-back {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(7, 17, 12, 0.9);
    color: var(--green);
    font-size: 1.2rem;
}
.install-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}
.install-brand img {
    width: 46px;
    height: 46px;
    border-radius: 13px;
}
.install-brand div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.install-brand span {
    color: var(--muted);
    font-size: 0.65rem;
}
.install-brand strong {
    overflow: hidden;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.install-hero {
    padding: 25px 0 20px;
}
.install-hero h1 {
    max-width: 480px;
    margin: 8px 0 12px;
    font-size: clamp(2rem, 10vw, 3.15rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}
.install-hero p {
    max-width: 460px;
    margin: 0;
    color: #b7c1ba;
    font-size: 0.86rem;
}
.platform-list {
    display: grid;
    gap: 15px;
}
.platform-card {
    padding: 19px;
}
.platform-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.platform-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border: 1px solid rgba(40, 240, 100, 0.28);
    border-radius: 18px;
    background: rgba(40, 240, 100, 0.08);
    color: var(--green);
}
.platform-icon svg {
    width: 38px;
    height: 38px;
}
.platform-heading div:last-child {
    display: flex;
    flex-direction: column;
}
.platform-heading span {
    color: var(--green);
    font-size: 0.57rem;
    font-weight: 950;
    letter-spacing: 0.12em;
}
.platform-heading h2 {
    margin: 2px 0 0;
    font-size: 1.23rem;
}
.install-steps {
    display: grid;
    gap: 12px;
    margin: 17px 0 0;
    padding: 0;
    list-style: none;
}
.install-steps li {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: start;
    gap: 11px;
    color: #c3ccc6;
    font-size: 0.79rem;
    line-height: 1.45;
}
.install-step-number {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(40, 240, 100, 0.5);
    border-radius: 50%;
    background: rgba(40, 240, 100, 0.08);
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 950;
}
.install-steps p {
    margin: 5px 0 0;
}
.install-steps strong {
    color: #fff;
}
.platform-note {
    margin: 16px 0 0;
    padding: 11px 12px;
    border-left: 3px solid var(--green);
    border-radius: 9px;
    background: rgba(40, 240, 100, 0.045);
    color: #9fb0a4;
    font-size: 0.68rem;
    line-height: 1.45;
}
.install-finish {
    margin-top: 18px;
    padding: 16px;
    text-align: center;
}
.install-finish strong {
    display: block;
    margin-bottom: 4px;
}
.install-finish p {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
}
.install-page .primary-button {
    margin-top: 15px;
}
.progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 14px 0 24px;
    padding: 0;
    list-style: none;
}
.progress li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #667168;
    font-size: 0.58rem;
    font-weight: 850;
}
.progress li::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 13px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #17231b;
}
.progress li:first-child::before {
    display: none;
}
.progress li span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #26342b;
    border-radius: 50%;
    background: #07110c;
}
.progress li.done,
.progress li.active {
    color: var(--green);
}
.progress li.done::before,
.progress li.active::before {
    background: var(--green-dark);
}
.progress li.done span,
.progress li.active span {
    border-color: var(--green);
    background: rgba(40, 240, 100, 0.1);
}
.page-intro {
    margin-bottom: 18px;
    text-align: center;
}
.page-intro h1 {
    font-size: clamp(2rem, 9vw, 3rem);
}
.iframe-card {
    padding: 14px;
}
.iframe-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 3px 14px;
}
.iframe-heading div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}
.iframe-heading span {
    color: var(--green);
    font-size: 0.56rem;
    font-weight: 950;
    letter-spacing: 0.11em;
}
.iframe-heading strong {
    font-size: 1rem;
}
.iframe-heading em {
    padding: 5px 7px;
    border: 1px solid rgba(40, 240, 100, 0.27);
    border-radius: 999px;
    color: var(--green);
    font-size: 0.51rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}
.iframe-card iframe {
    display: block;
    width: 100%;
    height: clamp(500px, 145vw, 700px);
    border: 0;
    border-radius: 17px;
    background: #000;
}
.simulator-frame iframe {
    height: clamp(520px, 150vw, 740px);
}
.iframe-placeholder {
    display: flex;
    min-height: 430px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px dashed rgba(40, 240, 100, 0.22);
    border-radius: 17px;
    background: rgba(0, 0, 0, 0.28);
    text-align: center;
}
.iframe-placeholder > span {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 20px;
    background: rgba(40, 240, 100, 0.09);
    color: var(--green);
    font-size: 2rem;
}
.iframe-placeholder p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.77rem;
}
.iframe-placeholder code {
    color: #c9ffd6;
}
.secondary-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #cbd6ce;
    font-size: 0.78rem;
    font-weight: 850;
}
.session-hint {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.65rem;
    text-align: center;
    word-break: break-word;
}
.site-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 16px 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
.site-footer p {
    margin: 0;
    color: #78847c;
    font-size: 0.62rem;
}
@media (min-width: 600px) {
    .app-shell {
        padding-right: 24px;
        padding-left: 24px;
    }
    .landing-portrait {
        width: 560px;
    }
    .lead-card {
        padding: 24px;
    }
    .iframe-card {
        padding: 18px;
    }
}
@media (max-width: 350px) {
    .simulator-topbar {
        gap: 7px;
    }
    .header-actions {
        gap: 4px;
    }
    .simulator-topbar .credit-button {
        min-width: 92px;
        min-height: 40px;
        padding: 8px 9px;
        font-size: 0.58rem;
        letter-spacing: 0.045em;
    }
    .app-shell {
        padding-right: 12px;
        padding-left: 12px;
    }
    .landing-portrait {
        height: 370px;
    }
    .portrait-logo {
        width: 170px;
    }
    .iframe-heading strong {
        font-size: 0.9rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Simulador de probabilidades exibido antes do iframe do jogo. */
.probability-card {
    padding: 0 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.probability-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px 14px;
}
.probability-status > span {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px var(--green);
}
.probability-status > div {
    display: flex;
    flex-direction: column;
}
.probability-status strong {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}
.probability-status small {
    color: var(--muted);
    font-size: 0.53rem;
    letter-spacing: 0.06em;
}
.probability-board {
    position: relative;
    display: grid;
    isolation: isolate;
    height: 245px;
    grid-template-columns: 1fr 0.95fr 1fr;
    border: 2px solid var(--green);
    border-radius: 34px;
    background: #021008;
    box-shadow:
        0 0 24px rgba(40, 240, 100, 0.2),
        inset 0 0 22px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.probability-zone {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 5px 25px;
    text-align: center;
    transition:
        filter 0.3s,
        opacity 0.3s,
        box-shadow 0.3s;
}
.probability-zone + .probability-zone {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.probability-zone::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.17), transparent 30%),
        linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.32));
    pointer-events: none;
}
.zone-a {
    background: linear-gradient(145deg, #1672dd 0%, #063d9f 46%, #031d68 100%);
}
.zone-b {
    background: linear-gradient(180deg, #76610b 0%, #4f4308 47%, #302b08 100%);
}
.zone-c {
    background: linear-gradient(145deg, #b43931 0%, #8e1515 47%, #550606 100%);
}
.zone-caption {
    position: relative;
    z-index: 3;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}
.zone-caption span {
    margin-bottom: 2px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.75rem;
    font-weight: 900;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}
.zone-caption strong {
    display: block;
    width: 100%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.82rem, 4vw, 1.18rem);
    line-height: 1.05;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.table-dice {
    position: absolute;
    z-index: 3;
    top: 24px;
    display: grid;
    gap: 7px;
}
.table-dice-player {
    left: 24px;
}
.table-dice-banker {
    right: 24px;
}
.table-dice span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.46);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.45rem;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}
.table-dice .empty-die {
    color: transparent;
}
.tie-wheel {
    position: absolute;
    z-index: 3;
    top: 17px;
    left: 50%;
    display: flex;
    width: clamp(135px, 39vw, 180px);
    aspect-ratio: 1;
    flex-direction: column;
    justify-content: center;
    padding: 27px 20px 20px;
    border: 8px solid rgba(255, 209, 0, 0.78);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 225, 97, 0.7), transparent 38%),
        linear-gradient(160deg, #d59b30, #8e4d10);
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.18),
        0 0 25px rgba(255, 208, 0, 0.75),
        inset 0 0 24px rgba(77, 28, 0, 0.35);
    color: #57330f;
    transform: translateX(-50%);
}
.tie-wheel-heading,
.tie-wheel-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.45rem, 1.8vw, 0.65rem);
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}
.tie-wheel-heading {
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: clamp(0.48rem, 1.9vw, 0.68rem);
}
.tie-wheel-row i {
    min-width: 8px;
    flex: 1;
    border-bottom: 1px dotted rgba(87, 51, 15, 0.65);
}
.prediction-marker {
    position: absolute;
    z-index: 4;
    top: 42%;
    left: 50%;
    width: clamp(54px, 17vw, 78px);
    aspect-ratio: 1;
    border: 8px solid var(--yellow);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.18),
        0 0 22px var(--yellow),
        inset 0 0 18px rgba(255, 208, 0, 0.7);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.25s, transform 0.25s;
}
.zone-b .prediction-marker {
    display: none;
}
.zone-b::before {
    content: "";
    position: absolute;
    z-index: 8;
    top: 39%;
    left: 50%;
    width: clamp(56px, 16vw, 72px);
    aspect-ratio: 1;
    border: 6px solid var(--yellow);
    border-radius: 13px;
    background: rgba(255, 208, 0, 0.12);
    box-shadow:
        0 0 10px rgba(255, 208, 0, 0.9),
        0 0 26px rgba(255, 208, 0, 0.72),
        inset 0 0 14px rgba(255, 208, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.25s, transform 0.25s;
}
.board-message {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 51%;
    padding: 9px 13px;
    border: 1px solid rgba(40, 240, 100, 0.35);
    border-radius: 999px;
    background: rgba(0, 16, 10, 0.9);
    color: var(--green);
    font-size: 0.59rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}
.dice-stage {
    position: absolute;
    z-index: 6;
    inset: 0;
    display: none;
    place-content: center;
    justify-items: center;
    border: 0;
    background: transparent;
    text-align: center;
    pointer-events: none;
}
.dice-stage strong {
    max-width: 95%;
    color: #fff;
    font-size: clamp(1.4rem, 7vw, 2.3rem);
    font-weight: 1000;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow-wrap: normal;
}
.analysis-progress {
    display: none;
    width: min(68%, 300px);
    height: 7px;
    margin-top: 18px;
    border: 1px solid rgba(40, 240, 100, 0.5);
    border-radius: 999px;
    background: rgba(0, 14, 7, 0.72);
    box-shadow: 0 0 16px rgba(40, 240, 100, 0.14);
    overflow: hidden;
}
.analysis-progress > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ca83a, var(--green), #a8ffbe);
    box-shadow: 0 0 14px rgba(40, 240, 100, 0.8);
}
.probability-card.is-running .analysis-progress {
    display: block;
}
.probability-card.is-running .analysis-progress > span {
    animation: analysis-loading var(--analysis-duration, 12000ms) linear forwards;
}
@keyframes analysis-loading {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
.probability-card.is-running .dice-stage,
.probability-card.has-result .dice-stage {
    display: grid;
}
.probability-card.is-running .board-message,
.probability-card.has-result .board-message {
    display: none;
}
.probability-card.result-A .zone-c,
.probability-card.result-B .zone-a,
.probability-card.result-B .zone-c,
.probability-card.result-C .zone-a {
    filter: brightness(0.46);
    opacity: 0.5;
}
.probability-card.result-A .zone-a,
.probability-card.result-C .zone-c {
    filter: brightness(1.35) saturate(1.15);
    box-shadow: inset 0 0 48px rgba(255, 255, 255, 0.3);
}
.probability-card.has-result .zone-b .tie-wheel {
    filter: brightness(0.72) saturate(0.72);
    opacity: 0.82;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.08),
        0 0 16px rgba(255, 208, 0, 0.28),
        inset 0 0 24px rgba(25, 10, 0, 0.52);
}
.probability-card.has-result .zone-b .zone-caption {
    filter: brightness(0.72);
    opacity: 0.78;
}
.probability-card.result-A .zone-a .prediction-marker,
.probability-card.result-C .zone-c .prediction-marker {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.probability-card.result-A .zone-b::before,
.probability-card.result-B .zone-b::before,
.probability-card.result-C .zone-b::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.probability-card.has-result .dice-stage strong {
    transform: translateY(38px);
}
.probability-card.has-error .probability-status > span {
    background: var(--danger);
    box-shadow: 0 0 14px var(--danger);
}
.simulation-button {
    min-height: 66px;
    margin-bottom: 15px;
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    letter-spacing: 0.02em;
}
.simulation-button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.55);
    opacity: 0.6;
}
.simulation-meta {
    display: flex;
    justify-content: space-between;
    padding: 9px 4px 0;
    color: var(--muted);
    font-size: 0.62rem;
}
.simulation-warning {
    margin: 10px 3px 2px;
    padding: 9px 11px;
    border-left: 3px solid var(--yellow);
    border-radius: 8px;
    background: rgba(255, 208, 0, 0.045);
    color: #c9c5a8;
    font-size: 0.62rem;
    line-height: 1.42;
}
.recreation-mode {
    display: grid;
    border: 1px solid #282ef038;
    background: linear-gradient(145deg, rgb(8 9 24 / 98%), rgb(3 10 8 / 98%));
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 14px 0 22px;
    padding: 13px 14px;
}
.recreation-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: rgba(40, 240, 100, 0.09);
    font-size: 1.1rem;
}
.recreation-mode > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.recreation-mode strong {
    font-size: 0.82rem;
}
.recreation-mode small {
    color: #87d99d;
    font-size: 0.49rem;
    letter-spacing: 0.04em;
}
.recreation-toggle {
    position: relative;
    width: 68px;
    height: 36px;
    border: 1px solid rgba(40, 240, 100, 0.6);
    border-radius: 999px;
    background: rgba(5, 30, 15, 0.85);
    color: var(--green);
    cursor: pointer;
}
.toggle-label {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #9ba59f;
    font-size: 0.5rem;
    font-weight: 950;
}
.toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px rgba(40, 240, 100, 0.55);
    transition:
        transform 0.2s,
        background 0.2s;
}
.recreation-toggle.is-active .toggle-label {
    right: auto;
    left: 8px;
    color: var(--green);
}
.recreation-toggle.is-active .toggle-knob {
    transform: translateX(32px);
    background: #7e8984;
    box-shadow: none;
}
.recreation-toggle:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}
/* Página estática usada somente quando não há conexão. */
.offline-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 15%, rgba(40, 240, 100, 0.14), transparent 34%),
        var(--bg);
}
.offline-card {
    width: min(100%, 420px);
    padding: 32px 24px;
    border: 1px solid rgba(40, 240, 100, 0.38);
    border-radius: 28px;
    background: linear-gradient(150deg, #0a1a10, #030805);
    text-align: center;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}
.offline-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    border-radius: 22px;
}
.offline-card h1 {
    margin: 8px 0 12px;
}
.offline-card p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.55;
}
.offline-card .primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* Aviso acessível apresentado somente no primeiro acesso. */
.modal-open {
    overflow: hidden;
}
.notice-modal {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 5, 2, 0.9);
    backdrop-filter: blur(10px);
}
.notice-modal[hidden] {
    display: none;
}
.notice-dialog {
    width: min(100%, 430px);
    max-height: 90vh;
    padding: 26px;
    border: 1px solid rgba(40, 240, 100, 0.42);
    border-radius: 25px;
    background: linear-gradient(150deg, #0a1a10, #030805);
    box-shadow:
        0 0 55px rgba(40, 240, 100, 0.12),
        0 24px 60px rgba(0, 0, 0, 0.55);
    overflow: auto;
}
.notice-dialog h2 {
    margin: 7px 0 15px;
    font-size: 1.5rem;
}
.notice-dialog p {
    margin: 0 0 15px;
    color: #b8c2bc;
    font-size: 0.84rem;
    line-height: 1.55;
}
.notice-button {
    width: auto;
    min-width: 145px;
    margin-top: 5px;
    padding-right: 22px;
    padding-left: 22px;
}
@media (max-width: 350px) {
    .probability-card {
        padding: 0 0 9px;
    }
    .probability-board {
        height: 255px;
        border-radius: 27px;
    }
    .table-dice-player {
        left: 13px;
    }
    .table-dice-banker {
        right: 13px;
    }
    .table-dice span {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    .tie-wheel {
        top: 20px;
        width: 126px;
        padding: 23px 17px 17px;
        border-width: 6px;
    }
    .zone-caption strong {
        font-size: 0.76rem;
    }
    .recreation-mode {
        grid-template-columns: 40px 1fr auto;
        padding: 11px 9px;
        gap: 7px;
    }
    .recreation-icon {
        width: 36px;
        height: 36px;
    }
    .recreation-toggle {
        width: 64px;
    }
    .recreation-toggle.is-active .toggle-knob {
        transform: translateX(28px);
    }
}
