/* Mobile product refinements; independent from shared administration styles. */
.telegram-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 36px; padding: 8px 13px; box-sizing: border-box; border-radius: 10px; background: #fff; color: #075d8d; text-decoration: none; font-size: 12px; font-weight: 800; }
.telegram-link:focus-visible,.telegram-account:focus-visible { outline: 3px solid #8b5cc7; outline-offset: 4px; }
.slide-telegram { color: #fff; background: radial-gradient(ellipse at top right,#57bfe5,transparent 65%),linear-gradient(115deg,#126a9f,#208ebc); }
.slide-telegram .eyebrow { color: #dbf4ff; }
.carousel-slide.slide-telegram > div > p:not(.eyebrow) { display: block; margin: 6px 0 10px; font-size: 11px; line-height: 1.35; color: #e6f7ff; }
.slide-telegram > div { position: relative; z-index: 1; }
.slide-telegram h2 { font-size: 20px; }
.telegram-plane { width: 68px; height: 68px; color: #fff; opacity: .9; transform: rotate(-8deg); }
.telegram-account { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 16px; border: 1px solid #dcebf2; border-radius: 17px; background: #f4faff; color: #183a50; text-decoration: none; }
.telegram-account > span:nth-child(2) { flex: 1; min-width: 0; }
.telegram-account strong { display: block; font-size: 14px; }
.telegram-account small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: #557286; }
.telegram-account-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; color: #1383b9; border-radius: 12px; background: #e2f2fb; }
.telegram-account svg { width: 24px; height: 24px; }
.telegram-account-arrow { color: #1383b9; font-size: 20px; }
.telegram-invite { width: min(380px,calc(100vw - 40px)); box-sizing: border-box; max-height: calc(100dvh - 140px); overflow: auto; padding: 28px 24px 18px; border: 1px solid #e5edf4; border-radius: 24px; background: #fffdfa; color: #292033; text-align: center; box-shadow: 0 20px 70px #20102c33; }
.telegram-invite::backdrop { background: #251a3438; }
.telegram-invite h2 { margin: 6px 0 10px; font-size: 23px; line-height: 1.2; }
.telegram-invite > p:not(.eyebrow) { margin: 0 0 20px; font-size: 13px; line-height: 1.65; color: #716880; }
.telegram-invite-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 19px; background: #e6f4fc; color: #1688bc; }
.telegram-invite-icon svg { width: 36px; height: 36px; }
.telegram-invite .eyebrow { font-size: 10px; color: #1681b0; }
.telegram-invite .telegram-link { display: flex; min-height: 46px; background: #1686b8; color: #fff; font-size: 14px; }
.telegram-invite > .text-button { margin-top: 8px; min-height: 36px; color: #716880; }
@media(max-width:360px){.slide-telegram .telegram-plane{width:46px;height:46px}.slide-telegram .telegram-link{padding:7px 10px;min-height:32px}}
.carousel-track { height: 158px; border-radius: 18px; }
.carousel-slide { padding: 16px 18px; gap: 10px; }
.carousel-slide h2, .slide-welcome h2 { font-size: 22px; line-height: 1.12; }
.carousel-slide p:not(.eyebrow) { font-size: 12px; margin: 5px 0 9px; }
.carousel-slide .eyebrow { font-size: 10px; margin-bottom: 5px; }
.carousel-slide button { padding: 8px 11px; }
.carousel-slide:not(.slide-welcome) p:not(.eyebrow) { display: none; }
.carousel-slide.slide-play { display: flex; background: radial-gradient(ellipse at 85% 5%,#e71b99 0%,transparent 60%),linear-gradient(115deg,#a60069,#cf007f 66%,#a60070); color: #fff; }
.slide-play .lotofacil-copy { position: relative; z-index: 1; }
.slide-play .eyebrow { color: #ffe5f6; font-size: 8px; letter-spacing: 1.1px; margin: 0 0 5px; }
.carousel-slide.slide-play h2 { display: flex; align-items: center; gap: 7px; max-width: none; font-size: clamp(32px,8.6vw,43px); line-height: 1.05; letter-spacing: -1.6px; font-weight: 900; }
.lotofacil-clover { width: 32px; height: 32px; flex: 0 0 32px; }
.carousel-slide.slide-play .lotofacil-copy p.lotofacil-tagline { display: block; margin: 5px 0 10px; color: #fff0fa; font-size: 12px; line-height: 1.25; }
.slide-play button { display: inline-flex; align-items: center; gap: 13px; min-height: 32px; padding: 8px 12px; border-radius: 10px; background: #fff; color: #a30068; box-shadow: 0 3px 10px #67003d22; }
.slide-play button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.lotofacil-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lotofacil-watermark { position: absolute; width: 128px; height: 128px; right: -12px; bottom: -26px; color: #fff; opacity: .08; transform: rotate(-18deg); pointer-events: none; }
.slide-welcome .eyebrow { display: none; }
.welcome-copy { width: 67%; }
.welcome-copy small { font-size: 10px; margin-top: 4px; }
.carousel-balls { transform: scale(.76); transform-origin: right center; width: 80px; }
.carousel-icon { width: 52px; height: 52px; font-size: 26px; border-radius: 16px; }
.carousel-controls { gap: 12px; margin-top: 6px; }
.carousel-controls > button { width: 26px; height: 26px; }
.promo-carousel { margin-bottom: 10px; }
.draw-card { margin-top: 0; padding: 12px; gap: 10px; border-radius: 16px; flex-direction: row; align-items: center; }
.draw-card > div:first-child { min-width: 0; flex: 1; }
.draw-card .eyebrow { font-size: 9px; letter-spacing: .6px; margin-bottom: 4px; }
.draw-card h2 { font-size: 18px; }
.draw-card > div > span { font-size: 12px; line-height: 1.5; }
.draw-card > div > small { color: var(--muted); font-size: 11px; font-weight: 500; margin-top: 4px; }
.countdown-block { min-width: 116px; width: auto; padding: 8px 0 8px 10px; border: 0; border-left: 1px solid #eadfd6; border-radius: 0; background: transparent; }
.countdown-block strong { font-size: 18px; margin-top: 4px; }
.countdown-block span, .countdown-block small { font-size: 10px !important; text-transform: none; letter-spacing: 0; }
.betting-heading { margin: 18px 0 0; gap: 8px; }
.betting-heading h2 { font-size: 19px; line-height: 1.3; }
.betting-heading .eyebrow { margin-bottom: 4px; }
.betting-heading > strong { font-size: 14px; white-space: nowrap; }
.selection-hint { margin: 7px 0 10px; font-size: 12px; line-height: 1.5; color: var(--muted); min-height: 18px; }
.selection-hint.is-ready { color: var(--purple-dark); font-weight: 650; }
.number-grid { margin-top: 0; }
.number-ball { box-shadow: none; transition: transform .12s ease, background .15s ease; touch-action: manipulation; }
.number-ball.selected { background: var(--purple); box-shadow: 0 2px 5px rgba(111,67,168,.12); border-color: var(--purple); }
.number-ball:active { transform: scale(.94); }
.number-ball:focus-visible, .nav-item:focus-visible { outline: 3px solid var(--purple-dark); outline-offset: 3px; }
.app-panel .card { box-shadow: 0 3px 12px rgba(48,32,55,.025); border-radius: 18px; }
.app-panel .form-note, .order-main > span, .history-result-head > span { font-size: 12px; line-height: 1.5; }
.bottom-nav { padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
.nav-item { font-size: 11px; line-height: 1.3; padding: 3px 2px; min-height: 44px; }
.nav-item svg { display: block; width: 21px; height: 21px; margin: 0 auto 2px; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active svg { background: var(--purple-soft); border-radius: 7px; }
/* One shared highlight follows the active destination without changing nav height. */
.bottom-nav::before { content: ''; position: absolute; z-index: 0; left: 8px; top: 4px; width: calc((100% - 16px) / 4); height: 44px; border-radius: 12px; background: linear-gradient(180deg, rgba(139,92,199,.09), rgba(139,92,199,.025)); transform: translateX(calc(var(--nav-index, 0) * 100%)); transition: transform 240ms cubic-bezier(.2,.8,.3,1); pointer-events: none; }
.nav-item { position: relative; z-index: 1; transition: color 180ms ease; }
.nav-item svg { transition: transform 220ms cubic-bezier(.2,.8,.3,1); }
.nav-item.active svg { background: transparent; transform: translateY(-2px); }
.order-main .order-numbers:has(.bet-number) { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.order-row .bet-number { display: inline-grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; margin: 0; border-radius: 50%; background: #f2edf6; color: #62586a; font-size: 12px; line-height: 1; letter-spacing: 0; }
.order-row .bet-number.is-hit { background: var(--purple-dark); color: white; font-weight: 800; }
/* Keep order content full-width instead of a narrow column beside the status. */
#ordersPanel { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
#ordersPanel .order-list { gap: 8px; }
.order-row.compact-order { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: normal; gap: 6px; padding: 12px; align-items: stretch; }
.order-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.order-card-head strong { font-size: 15px; line-height: 1.3; }
.order-card-head strong:last-child { white-space: nowrap; }
.order-card-numbers { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.compact-order .order-number-plain, .compact-order .bet-number { display: grid; place-items: center; width: 100%; max-width: 26px; height: auto; aspect-ratio: 1; margin: 0; font-size: 12px; line-height: 1; letter-spacing: 0; }
.compact-order .order-number-plain { color: var(--purple-dark); font-weight: 750; max-height: 22px; }
.order-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; }
.compact-order .order-card-meta > span { margin: 0; font-size: 11px; line-height: 1.4; }
.compact-order .order-card-meta .bet-status { padding: 3px 6px; white-space: nowrap; font-size: 10px; }
.compact-order .order-card-dates { display: grid; gap: 2px; }
.compact-order .order-card-dates > span { margin: 0; font-size: 11px; line-height: 1.4; }
.compact-order > small { font-size: 11px; color: var(--muted); }
.rolling-amount span { display: inline; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; padding: 0; margin: 0; border-radius: 0; background: none; opacity: 1; }
.rolling-amount .amount-readable { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rolling-amount .amount-visual { white-space: pre; font-variant-numeric: tabular-nums; }
.rolling-amount .amount-digit { display: inline-block; position: relative; overflow: hidden; height: 1.2em; vertical-align: -.15em; line-height: 1.2; }
.rolling-amount .amount-digit > span { display: block; }
.rolling-amount .amount-old { position: absolute; inset: 0; }
.win-celebration { position: fixed; inset: 0; z-index: 12; pointer-events: none; overflow: hidden; }
.win-celebration i { position: absolute; width: 5px; height: 7px; pointer-events: none; }
.login-error { margin: 0; padding: 10px 12px; border: 1px solid #efd3da; border-radius: 10px; background: #fff4f5; color: #a32f48; font-size: 13px; line-height: 1.5; }
.draw-load-error { font-size: 12px; color: var(--danger); line-height: 1.5; }
.is-loading #accountNextContest, .is-loading #accountNextDate, .is-loading #accountEstimatedPrize, .is-loading #drawCountdown { color: transparent; border-radius: 5px; background: #eee5f1; animation: loading-pulse 1.4s ease-in-out infinite; }
.skeleton-balls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
.skeleton-balls i { display: block; width: 36px; height: 36px; border-radius: 50%; background: #eee5f1; margin: auto; }
.skeleton-line { height: 32px; border-radius: 8px; background: #eee5f1; margin-top: 10px; }
.result-skeleton { animation: loading-pulse 1.4s ease-in-out infinite; }
@keyframes loading-pulse { 50% { opacity: .45; } }
@media (max-width: 360px) {
  .carousel-track { height: 154px; }
  .carousel-slide { padding: 13px; }
  .carousel-slide h2, .slide-welcome h2 { font-size: 20px; }
  .carousel-balls { width: 55px; transform: scale(.65); }
  .welcome-copy { width: 70%; }
  .draw-card { padding: 10px; gap: 7px; }
  .countdown-block { min-width: 105px; padding-left: 7px; }
  .betting-heading h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .number-ball, .carousel-slide { transition: none; }
  .is-loading *, .result-skeleton { animation: none !important; }
  .bottom-nav::before, .nav-item, .nav-item svg { transition: none; }
}

/* Prevent accidental double-tap zoom while retaining scrolling and pinch zoom. */
html, body, .phone-shell, button, a, input, select, summary { touch-action: manipulation; }
.transaction-order-link { width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; }
.transaction-order-link:hover, .transaction-order-link:focus-visible { border-color: var(--purple); background: var(--purple-soft); }
.transaction-arrow { color: var(--purple); font-size: 20px; margin-left: 5px; }
.order-linked-highlight { outline: 2px solid var(--purple); outline-offset: 2px; scroll-margin-top: 90px; }
@media (max-width: 350px) { .topbar { padding-inline: 12px; } }
