:root {
  --navy: #102e49;
  --navy-deep: #082743;
  --text: #183851;
  --muted: #516b7f;
  --page: #f5f7f5;
  --line: #dce3e6;
  --yellow: #ffcf19;
  --green: #239b50;
  --danger: #d32f2f;
  font-family: "Clarity City", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ffcd07; outline-offset: 3px; }
.container { width: min(1130px, calc(100% - 48px)); margin: 0 auto; }
.content-width { max-width: 1068px; }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 20; background: #fff; padding: 10px 15px; }
.skip-link:focus { top: 8px; }

.site-header { background: #fff; min-height: 91px; }
.header-inner { min-height: 91px; display: flex; align-items: center; }
.site-logo { display: block; width: 360px; max-width: min(100%, 360px); height: auto; }

.hero { background: var(--navy); color: #fff; }
.hero-inner { min-height: 310px; max-width: 1068px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 42px; padding-bottom: 42px; }
.hero h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.13; letter-spacing: -.045em; margin: 0 0 23px; font-weight: 800; }
.hero p { max-width: 760px; font-size: clamp(1.08rem, 1.55vw, 1.35rem); line-height: 1.6; letter-spacing: -.01em; color: #e0eaf2; margin: 0; }
.hero strong { color: #fff; font-weight: 800; }

.information-section { padding: 80px 0 85px; background: var(--page); }
.information-section h2, .section-heading h1, .section-heading h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: -.042em; margin: 0 0 29px; font-weight: 800; }
.information-section .intro { font-size: 1.2rem; line-height: 1.7; max-width: 850px; color: var(--muted); margin: 0 0 28px; }
.notice-grid, .service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.notice-card { background: #fff; border-radius: 15px; border-top: 4px solid var(--navy); padding: 30px 28px 35px; min-height: 330px; }
.line-icon { width: 35px; height: 36px; font-size: 2.1rem; line-height: 1; color: var(--navy); margin-bottom: 30px; }
.calendar-icon img { display: block; width: 44px; height: 44px; object-fit: contain; transform: translate(-5px, -4px); }
.refund-icon img { display: block; width: 44px; height: 44px; object-fit: contain; transform: translate(-5px, -4px); }
.notice-card h3 { font-size: 1.9rem; line-height: 1.22; letter-spacing: -.045em; margin: 0 0 10px; color: #455f70; }
.notice-card p { font-size: 1.13rem; line-height: 1.72; color: #526d7e; margin: 0; }
.notice-card em { display: inline-block; margin-bottom: 2px; }
.notice-card strong { color: var(--text); }
.notice-strip { background: #fff; border-radius: 14px; border-top: 4px solid var(--navy); margin: 28px 0 46px; padding: 35px 29px; color: #5c7383; font-size: 1.07rem; line-height: 1.5; }
.notice-strip strong { color: var(--text); }
.service-card { min-height: 240px; border-radius: 15px; padding: 29px; }
.yellow-card { background: var(--yellow); color: var(--navy); }
.green-card { background: var(--green); color: #fff; }
.service-icon { display: block; font-size: 2.2rem; line-height: 1; margin-bottom: 22px; }
.report-icon img { display: block; width: 44px; height: 44px; object-fit: contain; mix-blend-mode: darken; }
.service-card h3 { font-size: 1.8rem; line-height: 1.13; letter-spacing: -.055em; margin: 0 0 12px; max-width: 410px; }
.service-card p { font-size: 1.12rem; line-height: 1.5; margin: 0 0 17px; }
.service-card a { display: inline-block; font-weight: 800; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.service-card a span { margin-left: 5px; }
.green-card .green-card-link { margin-bottom: 0; }
.green-card-link a { color: var(--navy); }
.flag-wrap { display: flex; justify-content: center; margin-top: 48px; }
.flag-wrap img { display: block; width: 144px; height: auto; }
.service-card .report-button { display: inline-block; position: relative; width: 200px; height: 58px; overflow: hidden; line-height: 0; text-decoration: none; border-radius: 30px; }
.report-button img { display: block; position: absolute; width: 214px; height: 78px; max-width: none; left: -8px; top: -11px; }

.consult-section, .result-section { background: #fff; padding: 78px 0 86px; }
.consult-section { padding: 55px 0 65px; }
.section-heading { margin-bottom: 27px; }
.section-heading > span { display: block; color: #1968a3; font-size: .72rem; font-weight: 800; letter-spacing: .14em; margin-bottom: 11px; }
.section-heading h1, .section-heading h2 { margin-bottom: 11px; }
.section-heading p { color: var(--muted); font-size: 1.12rem; line-height: 1.6; margin: 0; }
.cpf-form { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; padding: 31px; max-width: 770px; }
.cpf-form label { display: block; font-weight: 800; margin-bottom: 11px; }
.cpf-input-row { display: flex; gap: 12px; }
.cpf-input-row input { flex: 1; min-width: 0; height: 52px; border: 1px solid #aab9c3; border-radius: 5px; padding: 0 15px; font-size: 1.12rem; letter-spacing: .08em; color: var(--text); }
.cpf-input-row input[aria-invalid=true] { border-color: #b22525; outline-color: #b22525; }
.action-button { min-height: 52px; padding: 0 22px; border: 0; border-radius: 5px; background: #1351b4; color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 30px; white-space: nowrap; transition: background 0.2s; }
.action-button:hover { background: #0c326f; }
.action-button:disabled { background: #aab9c3; cursor: not-allowed; }
.action-button span { font-size: 1.15rem; }
.form-error { color: #b22525; font-size: .9rem; margin: 13px 0 0; }

/* Banner de Fila */
.queue-banner { display: flex; align-items: center; gap: 8px; background: #eef6ff; color: #1351b4; padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; width: fit-content; margin-bottom: 20px; border: 1px solid #d0e3ff; }
.pulse-dot { width: 8px; height: 8px; background: #1351b4; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }

.result-section { background: var(--page); padding-top: 66px; }
.result-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 13px; overflow: hidden; }
.result-table-heading { background: #eff4f6; display: flex; justify-content: space-between; gap: 15px; padding: 16px 25px; font-size: .85rem; color: #4a6475; font-weight: 800; }
.bet-row { display: flex; gap: 15px; align-items: center; min-height: 81px; padding: 16px 25px; border-top: 1px solid var(--line); transition: opacity 0.5s ease-in; }
.bet-logo-image { display: block; width: 125px; height: 50px; object-fit: contain; flex: none; }
.bet-amount { font-size: 1.08rem; font-weight: 800; margin-left: auto; white-space: nowrap; }
.result-total { border-top: 1px solid #bbccd3; background: #f6faf7; padding: 24px 25px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.result-total span { font-size: 1.13rem; font-weight: 800; }
.result-total strong { font-size: 1.7rem; color: #146b32; }
.result-simulation { padding: 16px 25px 21px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-top: 1px solid var(--line); color: var(--navy); }
.result-simulation span { display: block; font-weight: 800; }
.result-simulation small { display: block; margin-top: 4px; color: #4a6475; line-height: 1.4; }
.result-simulation strong { white-space: nowrap; font-size: 1.2rem; }
.withdraw-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-top: 26px; padding: 29px; display: flex; justify-content: space-between; gap: 22px; align-items: center; }
.withdraw-card h3 { font-size: 1.4rem; margin: 0 0 7px; }
.withdraw-card p { color: var(--muted); font-size: .98rem; line-height: 1.5; margin: 0; max-width: 600px; }

/* Painel de Pagamento PIX */
.qr-panel { border: 1px solid var(--line); border-top: 4px solid var(--navy); background: #fff; border-radius: 12px; margin-top: 25px; padding: 30px; text-align: center; }
.qr-panel h3 { font-size: 1.45rem; margin: 0 0 8px; }
.qr-panel p { color: var(--muted); margin: 0 0 20px; }
.qr-wrapper { background: #f9fafb; padding: 15px; border-radius: 12px; display: inline-block; border: 1px solid var(--line); margin-bottom: 20px; }
.qr-panel img { display: block; width: 290px; height: 290px; max-width: 100%; margin: 0 auto; }

.timer-container { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.timer-critical { color: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.copy-paste-container { background: #f1f5f9; padding: 20px; border-radius: 12px; text-align: left; max-width: 450px; margin: 0 auto; }
.copy-paste-container label { display: block; font-size: 0.8rem; font-weight: 800; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; height: 45px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; font-family: monospace; font-size: 0.9rem; background: #fff; color: var(--text); }
.copy-button { height: 45px; padding: 0 20px; background: var(--navy); color: #fff; border: 0; border-radius: 6px; font-weight: 700; transition: background 0.2s; }
.copy-button:hover { background: var(--navy-deep); }

.site-footer { background: var(--navy-deep); color: #d4e0e8; padding: 32px 0; font-size: .87rem; }
.site-footer p { margin: 0; line-height: 1.5; }
.site-footer a { color: #fff; text-underline-offset: 2px; }

.loading-dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 11px; box-shadow: 0 20px 80px #09213455; padding: 35px; text-align: center; color: var(--text); }
.loading-dialog::backdrop { background: #071d34ae; }
.loader { width: 42px; height: 42px; border: 4px solid #dce9f4; border-top-color: #1351b4; border-radius: 50%; animation: turn .85s linear infinite; margin: 0 auto 22px; }
@keyframes turn { to { transform: rotate(360deg); } }
.loading-dialog h2 { font-size: 1.4rem; margin: 0 0 10px; }
.loading-dialog p { color: var(--muted); line-height: 1.5; margin: 0 0 28px; }
.progress-label { display: flex; justify-content: space-between; font-size: .83rem; font-weight: 800; margin-bottom: 9px; }
.progress-track { width: 100%; height: 9px; background: #e8eff3; border-radius: 9px; overflow: hidden; }
.progress-track > div { width: 0; height: 100%; background: #1351b4; border-radius: 9px; transition: width .28s ease; }

@media (max-width: 720px) {
  .container { width: min(100% - 32px, 1130px); }
  .site-header, .header-inner { min-height: 72px; }
  .site-logo { width: 300px; }
  .hero-inner { min-height: 310px; padding-top: 42px; padding-bottom: 42px; }
  .hero p { font-size: 1.08rem; line-height: 1.55; }
  .information-section, .consult-section, .result-section { padding-top: 56px; padding-bottom: 58px; }
  .consult-section { padding-top: 38px; padding-bottom: 46px; }
  .notice-grid, .service-grid { grid-template-columns: 1fr; }
  .notice-card { min-height: 0; }
  .withdraw-card { display: block; }
  .withdraw-card .action-button { margin-top: 20px; }
}
@media (max-width: 490px) {
  .site-logo { width: 265px; }
  .hero-inner { min-height: 290px; }
  .hero h2 { font-size: 2rem; margin-bottom: 18px; }
  .hero p { font-size: 1rem; }
  .information-section h2, .section-heading h1, .section-heading h2 { font-size: 1.75rem; }
  .notice-card, .service-card, .cpf-form { padding: 24px 20px; }
  .notice-card h3 { font-size: 1.55rem; }
  .notice-card p, .information-section .intro { font-size: 1.02rem; }
  .notice-strip { padding: 25px 20px; }
  .cpf-input-row { flex-direction: column; }
  .cpf-input-row .action-button { width: 100%; }
  .result-table-heading, .bet-row, .result-total { padding-left: 16px; padding-right: 16px; }
  .bet-amount { font-size: .95rem; }
  .result-total strong { font-size: 1.4rem; }
}
