/* Responsive customer UI adapted from the mobile reference application. */
:root { --mobile-gutter:16px; }

body.mobile-layout .utility-bar { display:none; }
body.mobile-layout .app-container { width:calc(100% - (var(--mobile-gutter) * 2)); max-width:none; }

body.mobile-layout .site-header { position:sticky; top:0; min-height:56px; }
body.mobile-layout .header-inner { min-height:56px; gap:8px; padding-right:var(--mobile-gutter); padding-left:var(--mobile-gutter); }
body.mobile-layout .brand-word { font-size:17px; }
body.mobile-layout .header-tools { gap:6px; }
body.mobile-layout .header-clock,
body.mobile-layout .header-status { display:none; }
body.mobile-layout .account-button { width:36px; height:36px; padding:2px; justify-content:center; border-radius:50%; }
body.mobile-layout .account-button .account-copy,
body.mobile-layout .account-button .account-chevron { display:none; }
body.mobile-layout .account-avatar { width:30px; height:30px; font-size:10px; }
body.mobile-layout .menu-toggle { display:flex; width:40px; height:40px; gap:4px; border-radius:10px; }
body.mobile-layout .menu-toggle span { width:16px; height:2px; border-radius:2px; }
body.mobile-layout .primary-nav { top:56px; padding:12px var(--mobile-gutter) 18px; }
body.mobile-layout .primary-nav a { min-height:48px; font-size:14px; }
body.mobile-layout .account-menu { top:50px; right:-4px; width:310px; }

body.mobile-layout .home-section,
body.mobile-layout .product-section,
body.mobile-layout .play-section,
body.mobile-layout .saved-section,
body.mobile-layout .results-section,
body.mobile-layout .responsible-section,
body.mobile-layout .support-section { padding:20px 0; }
body.mobile-layout .home-heading,
body.mobile-layout .section-heading,
body.mobile-layout .wallet-overview { display:block; }
body.mobile-layout .home-heading { padding-bottom:14px; }
body.mobile-layout .home-heading h1 { margin-top:7px; font-size:24px; line-height:1.16; }
body.mobile-layout .home-heading p:not(.section-kicker) { max-width:none; font-size:12px; line-height:1.55; }
body.mobile-layout .home-heading-meta { display:none; }
body.mobile-layout .section-kicker,
body.mobile-layout .panel-kicker { font-size:10px; letter-spacing:.13em; }
body.mobile-layout .home-data-grid { grid-template-columns:1fr; gap:10px; margin-top:10px; }
body.mobile-layout .home-panel { min-height:0; padding:14px; border-radius:14px; }
body.mobile-layout .home-alerts { grid-template-columns:1fr; }
body.mobile-layout .account-cta { display:block; margin-top:10px; padding:14px; border-radius:12px; }
body.mobile-layout .account-cta strong { font-size:13px; }
body.mobile-layout .account-cta span { font-size:11px; line-height:1.45; }
body.mobile-layout .account-cta-actions { display:grid; grid-template-columns:1fr 1fr; margin-top:12px; }
body.mobile-layout .account-cta-actions button { min-height:44px; }
body.mobile-layout .jackpot-grid { grid-template-columns:1fr; gap:10px; }
body.mobile-layout .jackpot-card { min-height:154px; padding:14px; border-radius:14px; }
body.mobile-layout .jackpot-card-top span { font-size:10px; }
body.mobile-layout .jackpot-card-top b,
body.mobile-layout .jackpot-card > small { font-size:8px; }
body.mobile-layout .jackpot-card > strong { font-size:21px; }
body.mobile-layout .jackpot-card > p { font-size:10px; }
body.mobile-layout .jackpot-card-actions { margin-top:11px; }
body.mobile-layout .jackpot-card-actions button { min-height:40px; font-size:10px; }
body.mobile-layout .jackpot-card-actions a { font-size:10px; }
body.mobile-layout .jackpot-card { min-height:212px; }
body.mobile-layout .jackpot-card-actions { display:flex; flex-wrap:wrap; gap:8px; }
body.mobile-layout .jackpot-card-actions button { flex:1 1 150px; min-width:0; }
body.mobile-layout .jackpot-card-actions a { flex:1 1 84px; align-self:center; min-width:0; }
body.mobile-layout .jackpot-metrics { position:static; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 8px; margin-top:11px; padding-top:10px; border-top:1px solid rgba(255,255,255,.18); color:rgba(255,255,255,.72); }
body.mobile-layout .jackpot-metrics b { text-align:right; }

body.mobile-layout .section-heading { margin-bottom:14px; }
body.mobile-layout .section-heading h2,
body.mobile-layout .wallet-overview h2,
body.mobile-layout .results-page-heading h2 { font-size:25px; line-height:1.15; }
body.mobile-layout .section-heading > p,
body.mobile-layout .wallet-overview > div > p:not(.section-kicker),
body.mobile-layout .results-page-heading > div:first-child > p:not(.section-kicker) { max-width:none; margin-top:8px; font-size:12px; line-height:1.55; }
body.mobile-layout .product-tabs { display:flex; gap:8px; overflow-x:auto; margin-right:-16px; padding:0 16px 5px 0; scrollbar-width:none; }
body.mobile-layout .product-tabs::-webkit-scrollbar,
body.mobile-layout .wallet-filters::-webkit-scrollbar,
body.mobile-layout .result-filter::-webkit-scrollbar { display:none; }
body.mobile-layout .product-tab { flex:0 0 132px; min-height:136px; padding:12px; border-radius:14px; }
body.mobile-layout .product-tab img,
body.mobile-layout .product-tab-mark { height:45px; margin-bottom:8px; }
body.mobile-layout .product-tab strong { font-size:12px; }
body.mobile-layout .product-tab small { font-size:9px; line-height:1.4; }

body.mobile-layout .purchase-progress { justify-content:flex-start; gap:6px; margin-bottom:12px; padding:10px 12px; overflow-x:auto; border-radius:12px; scrollbar-width:none; }
body.mobile-layout .purchase-progress::-webkit-scrollbar { display:none; }
body.mobile-layout .purchase-progress span { flex:0 0 auto; font-size:11px; white-space:nowrap; }
body.mobile-layout .purchase-progress b { width:22px; height:22px; font-size:10px; }
body.mobile-layout .purchase-progress i { flex:0 0 24px; width:24px; }
body.mobile-layout .play-layout { grid-template-columns:1fr; gap:12px; }
body.mobile-layout .play-stage { min-width:0; }
body.mobile-layout .play-heading { align-items:stretch; flex-direction:column; gap:12px; padding:14px; border:1px solid var(--line); border-radius:14px 14px 0 0; }
body.mobile-layout .play-title { align-items:flex-start; gap:10px; }
body.mobile-layout .product-badge { width:48px; height:48px; border-radius:12px; font-size:8px; }
body.mobile-layout .play-heading h2 { font-size:25px; }
body.mobile-layout .game-draw-meta { font-size:10px; line-height:1.5; }
body.mobile-layout .draw-card { width:100%; min-width:0; padding:10px 0 0; border-top:1px solid var(--line); border-left:0; }
body.mobile-layout .draw-card small { font-size:8px; }
body.mobile-layout .draw-card strong { font-size:11px; }
body.mobile-layout .draw-card em { max-width:calc(100% - 70px); font-size:9px; }
body.mobile-layout .draw-card > b { margin-left:auto; font-size:12px; }
body.mobile-layout .game-info-strip { grid-template-columns:1fr 1fr; gap:0; padding:12px 14px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); border-left:1px solid var(--line); }
body.mobile-layout .game-info-strip div { padding:5px 8px; }
body.mobile-layout .game-info-strip div:last-child { grid-column:1/-1; margin-top:4px; padding-top:9px; border-top:1px solid var(--line); }
body.mobile-layout .game-info-strip span { font-size:8px; }
body.mobile-layout .game-info-strip strong { margin-top:3px; font-size:11px; }
body.mobile-layout .selection-stack { gap:10px; }
body.mobile-layout .ticket-panel { position:static; order:2 !important; width:100%; padding:16px; border-radius:14px; }
body.mobile-layout .ticket-panel-head h2 { font-size:24px; }
body.mobile-layout .cart-list { max-height:none; }
body.mobile-layout .cart-empty { min-height:150px; padding:20px 12px; }
body.mobile-layout .cart-empty h3 { font-size:15px; }
body.mobile-layout .cart-empty p,
body.mobile-layout .cart-status,
body.mobile-layout .cart-footnote { font-size:10px; }

body.mobile-layout .standard-shell { padding:10px; border-radius:14px; }
body.mobile-layout .standard-card { border-radius:12px; }
body.mobile-layout .standard-card-heading { padding:13px 14px; }
body.mobile-layout .standard-card-heading h3 { font-size:17px; }
body.mobile-layout .standard-card-heading p { font-size:10px; }
body.mobile-layout .entries-heading { padding:12px 14px; }
body.mobile-layout .entries-heading strong { font-size:13px; }
body.mobile-layout .entries-heading span { font-size:9px; }
body.mobile-layout .entries-content { grid-template-columns:1fr; min-height:0; }
body.mobile-layout .entries-list { padding:10px 12px; }
body.mobile-layout .entry-row { grid-template-columns:18px minmax(0,1fr); gap:6px; min-height:43px; }
body.mobile-layout .entry-actions { grid-column:2; justify-content:flex-end; }
body.mobile-layout .entry-numbers,
body.mobile-layout .entry-code-digits { gap:5px; }
body.mobile-layout .entry-ball,
body.mobile-layout .entry-code-digit,
body.mobile-layout .entry-special { width:32px; height:32px; }
body.mobile-layout .entry-ball,
body.mobile-layout .entry-code-digit { font-size:10px; }
body.mobile-layout .entries-quick-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; padding:10px 12px; border-top:1px solid #edf1f4; border-left:0; }
body.mobile-layout .entry-quick-button { min-height:42px; padding:0 5px; font-size:10px; }
body.mobile-layout .matrix-order-bar { position:sticky; bottom:72px; width:100%; margin-top:12px; padding:10px 12px; border-radius:12px; }
body.mobile-layout .number-grid { grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; max-width:340px; margin-right:auto; margin-left:auto; }
body.mobile-layout .number-chip { width:36px; min-height:36px; justify-self:center; font-size:10px; }
body.mobile-layout .power-number-grid { grid-template-columns:repeat(7,minmax(0,1fr)); gap:7px; padding:15px 10px; }
body.mobile-layout .power-number { width:36px; height:36px; font-size:10px; }
body.mobile-layout .power-number-card { padding:14px; }
body.mobile-layout .power-line-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
body.mobile-layout .power-line-tab { min-height:56px; padding:8px 6px; }
body.mobile-layout .power-line-tab > span { width:22px; height:22px; }
body.mobile-layout .power-line-tab small { font-size:7px; }
body.mobile-layout .power-line-tab b { font-size:8px; }

body.mobile-layout .wallet-overview { padding:16px; border-radius:14px; }
body.mobile-layout .wallet-overview > div:first-child { min-height:0; padding-right:0; }
body.mobile-layout .wallet-heading-tools { position:static; align-items:stretch; flex-direction:column; margin-top:14px; }
body.mobile-layout .wallet-search { width:100%; height:42px; border-radius:10px; }
body.mobile-layout .wallet-view-tabs { justify-content:space-between; border-radius:10px; }
body.mobile-layout .wallet-view-tabs button { flex:1; min-height:36px; font-size:10px; }
body.mobile-layout .wallet-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:14px; }
body.mobile-layout .wallet-metric { min-height:76px; padding:12px; border-radius:12px; }
body.mobile-layout .wallet-metric:last-child { grid-column:1/-1; }
body.mobile-layout .wallet-toolbar { align-items:stretch; flex-direction:column; gap:9px; margin:12px 0 10px; }
body.mobile-layout .wallet-filters { width:100%; gap:6px; overflow-x:auto; padding-bottom:2px; }
body.mobile-layout .wallet-filters button { min-height:36px; padding:0 11px; font-size:10px; }
body.mobile-layout .wallet-toolbar .button { align-self:stretch; min-height:44px; }
body.mobile-layout .wallet-history-card { overflow-x:auto; }
body.mobile-layout .wallet-table-head,
body.mobile-layout .wallet-table-row { min-width:760px; }

body.mobile-layout .results-section { min-height:0; padding-bottom:36px; }
body.mobile-layout .results-page-heading { display:block; margin-bottom:14px; }
body.mobile-layout .results-heading-actions { margin-top:12px; justify-content:flex-start; }
body.mobile-layout .result-filter { gap:6px; margin-bottom:10px; padding-bottom:3px; }
body.mobile-layout .result-filter button { min-height:36px; padding:0 12px; font-size:10px; }
body.mobile-layout .results-main-grid { grid-template-columns:1fr; gap:10px; }
body.mobile-layout .result-latest-card,
body.mobile-layout .result-lookup-card,
body.mobile-layout .result-history-card { border-radius:14px; }
body.mobile-layout .result-latest-top { grid-template-columns:1fr; gap:10px; }
body.mobile-layout .result-prize-table,
body.mobile-layout .result-history-card { overflow-x:auto; }
body.mobile-layout .result-prize-head,
body.mobile-layout .result-prize-row { min-width:520px; }
body.mobile-layout .result-history-head,
body.mobile-layout .result-history-head-row,
body.mobile-layout .result-history-row,
body.mobile-layout .result-history-foot { min-width:760px; }

body.mobile-layout .responsible-layout,
body.mobile-layout .w06-layout { grid-template-columns:1fr; gap:12px; }
body.mobile-layout .w06-sidebar { position:static; width:auto; }
body.mobile-layout .w06-page-heading h1 { font-size:25px; line-height:1.15; }
body.mobile-layout .w06-page-heading p:not(.section-kicker) { font-size:12px; line-height:1.55; }
body.mobile-layout .w06-limit-grid,
body.mobile-layout .w06-action-grid { grid-template-columns:1fr; gap:10px; }
body.mobile-layout .w06-limit-card { padding:14px; border-radius:14px; }
body.mobile-layout .w06-limit-card strong { font-size:22px; }
body.mobile-layout .w06-history-card { overflow-x:auto; }
body.mobile-layout .w06-history-table { min-width:700px; }
body.mobile-layout .support-grid,
body.mobile-layout .support-cards { grid-template-columns:1fr; gap:10px; }

body.mobile-layout .checkout-backdrop { position:fixed; inset:0; display:block; height:100dvh; max-height:none; overflow-x:hidden; overflow-y:auto; padding:0; }
body.mobile-layout .checkout-shell { width:100%; min-height:100dvh; height:auto; max-height:none; margin:0; border:0; border-radius:0; box-shadow:none; }
body.mobile-layout .checkout-header { min-height:60px; padding:11px var(--mobile-gutter); }
body.mobile-layout .checkout-stepper { padding:10px var(--mobile-gutter); }
body.mobile-layout .checkout-layout { grid-template-columns:1fr; gap:10px; padding:12px var(--mobile-gutter) 24px; }
body.mobile-layout .checkout-summary { order:0; }
body.mobile-layout .checkout-main { order:1; min-height:0; padding:16px; }
body.mobile-layout .checkout-summary-items { max-height:none; overflow:visible; }
body.mobile-layout .checkout-main .checkout-actions { position:static; margin-top:18px; padding:0; }
body.mobile-layout .checkout-actions { display:grid; grid-template-columns:1fr; gap:8px; }
body.mobile-layout .checkout-actions .button { min-width:0; min-height:46px; }
body.mobile-layout .checkout-inline { padding:12px 0 86px; }
body.mobile-layout .checkout-inline .app-container { width:calc(100% - 24px); }
body.mobile-layout .checkout-inline .checkout-layout { grid-template-columns:1fr; gap:10px; padding:12px; }
body.mobile-layout .checkout-inline .checkout-main { min-height:0; padding:16px; }

body.mobile-layout .mobile-nav {
  position:fixed;
  z-index:65;
  right:auto;
  bottom:0;
  left:50%;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  align-items:end;
  width:var(--mobile-demo-width);
  height:64px;
  padding:6px 4px 7px;
  border-top:1px solid #e0e6ed;
  background:rgba(255,255,255,.98);
  box-shadow:0 -6px 18px rgba(17,35,60,.08);
  backdrop-filter:blur(10px);
  transform:translateX(-50%);
}
body.mobile-layout .mobile-nav a,
body.mobile-layout .mobile-nav button { min-height:48px; }
body.mobile-layout .mobile-nav a,
body.mobile-layout .mobile-nav button { display:grid; justify-items:center; gap:2px; padding:0; color:#7e8c9e; border:0; background:transparent; font-size:9px; text-align:center; }
body.mobile-layout .mobile-nav a > span,
body.mobile-layout .mobile-nav button > span { display:grid; place-items:center; height:22px; font-size:18px; line-height:1; }
body.mobile-layout .mobile-nav .mobile-buy { color:var(--red); font-weight:800; }
body.mobile-layout .mobile-nav .mobile-buy > span { display:grid; place-items:center; width:42px; height:42px; margin-top:-22px; color:#fff; border:4px solid #f5f7fa; border-radius:50%; background:var(--red); box-shadow:0 5px 12px rgba(226,35,42,.25); font-size:25px; }
body.mobile-layout .mobile-nav .mobile-buy > span { width:42px; height:42px; margin-top:-22px; font-size:25px; }

/* Keep the bottom navigation outside the scroll viewport. Only main is scrollable. */
body.mobile-layout {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  overscroll-behavior:none;
}
body.mobile-layout .mobile-device-status,
body.mobile-layout .site-header,
body.mobile-layout .mobile-nav { flex:0 0 auto; }
body.mobile-layout main {
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  padding-bottom:16px;
  overscroll-behavior:contain;
  scroll-padding-bottom:16px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
body.mobile-layout main::-webkit-scrollbar { display:none; }
body.mobile-layout .mobile-nav {
  position:relative;
  right:auto;
  bottom:auto;
  left:auto;
  width:100%;
  height:64px;
  margin:0;
  transform:none;
}
body.mobile-layout .mobile-nav a {
  align-content:center;
  justify-content:center;
  gap:3px;
  min-height:48px;
  color:#7f8da0;
  transition:color .18s ease;
}
body.mobile-layout .mobile-nav a.is-active,
body.mobile-layout .mobile-nav a:hover,
body.mobile-layout .mobile-nav a:focus-visible { color:var(--red); }
body.mobile-layout .mobile-nav-icon {
  display:grid !important;
  place-items:center;
  width:22px;
  height:22px;
  margin:0 !important;
  color:currentColor;
  font-size:0 !important;
  line-height:1;
}
body.mobile-layout .mobile-nav-icon svg {
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.mobile-layout .mobile-nav-label {
  display:block !important;
  width:auto;
  height:auto !important;
  margin:0 !important;
  color:inherit;
  font-size:9px !important;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
}
body.mobile-layout .mobile-nav .mobile-buy { color:var(--red); }
body.mobile-layout .mobile-nav .mobile-buy .mobile-nav-icon {
  width:46px;
  height:46px;
  margin-top:-25px !important;
  color:#fff;
  border:4px solid #f5f7fa;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 5px 12px rgba(226,35,42,.25);
}
body.mobile-layout .mobile-nav .mobile-buy .mobile-nav-icon svg {
  width:25px;
  height:25px;
  stroke-width:2;
}
body.mobile-layout .mobile-nav .mobile-buy .mobile-nav-label { font-weight:800; }

/* Wallet and results use the compact, card-first mobile composition from A17/A19. */
body.mobile-layout .mobile-screen-header { display:none; }
body.mobile-layout[data-page="wallet"] .site-header,
body.mobile-layout[data-page="results"] .site-header { display:none; }
body.mobile-layout[data-page="wallet"] .saved-section,
body.mobile-layout[data-page="results"] .results-section { min-height:0; padding:0 0 16px; }
body.mobile-layout[data-page="wallet"] .mobile-screen-header,
body.mobile-layout[data-page="results"] .mobile-screen-header {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  margin:0 -12px;
  padding:0 12px;
  border-bottom:1px solid #e5ebf1;
  background:#fff;
}
body.mobile-layout .mobile-screen-header > strong { color:#172944; font-size:15px; letter-spacing:-.03em; }
body.mobile-layout .mobile-screen-back,
body.mobile-layout .mobile-screen-actions button {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  color:#62758c;
  border:0;
  border-radius:8px;
  background:transparent;
  font-size:22px;
  line-height:1;
}
body.mobile-layout .mobile-screen-back:active,
body.mobile-layout .mobile-screen-actions button:active { background:#f1f4f7; }
body.mobile-layout .mobile-screen-actions { display:flex; gap:2px; margin-left:auto; }
body.mobile-layout .mobile-screen-actions button { font-size:18px; }

body.mobile-layout[data-page="wallet"] .wallet-overview { padding-top:14px; }
body.mobile-layout[data-page="wallet"] .wallet-overview > div:first-child { display:none; }
body.mobile-layout[data-page="wallet"] .wallet-stats { display:none; }
body.mobile-layout[data-page="wallet"] .wallet-toolbar {
  display:block;
  margin:0 0 10px;
  padding:10px 0 0;
  border:0;
  background:transparent;
}
body.mobile-layout[data-page="wallet"] .wallet-filter-selects { display:none; }
body.mobile-layout[data-page="wallet"] .wallet-filters {
  display:flex;
  gap:6px;
  width:100%;
  overflow-x:auto;
  padding:0 0 2px;
  scrollbar-width:none;
}
body.mobile-layout[data-page="wallet"] .wallet-filters::-webkit-scrollbar { display:none; }
body.mobile-layout[data-page="wallet"] .wallet-filters button {
  flex:0 0 auto;
  min-height:32px;
  padding:0 11px;
  border-radius:999px;
  font-size:9px;
}
body.mobile-layout[data-page="wallet"] .wallet-toolbar > .button { display:none; }
body.mobile-layout[data-page="wallet"] .wallet-history-card {
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
body.mobile-layout[data-page="wallet"] .wallet-history-note { margin:0 0 8px; padding:8px 9px; border-radius:9px; font-size:8px; }
body.mobile-layout[data-page="wallet"] .wallet-history-note p { font-size:8px; line-height:1.45; }
body.mobile-layout[data-page="wallet"] .wallet-table { overflow:visible; }
body.mobile-layout[data-page="wallet"] .wallet-table-head { display:none; }
body.mobile-layout[data-page="wallet"] .wallet-table-row {
  position:relative;
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto;
  gap:5px 8px;
  min-width:0;
  min-height:0;
  margin-bottom:8px;
  padding:11px 10px;
  border:1px solid #e1e8ef;
  border-radius:12px;
  background:#fff;
  box-shadow:0 5px 14px rgba(22,42,69,.045);
}
body.mobile-layout[data-page="wallet"] .wallet-table-row::before {
  content:"";
  display:block;
  grid-column:1;
  grid-row:1 / span 4;
  align-self:start;
  width:22px;
  height:22px;
  border-radius:7px;
  background:#17365e;
}
body.mobile-layout[data-page="wallet"] .wallet-reference { grid-column:2; grid-row:1; min-width:0; }
body.mobile-layout[data-page="wallet"] .wallet-reference strong { overflow:hidden; padding-right:25px; text-overflow:ellipsis; white-space:nowrap; font-size:8px; }
body.mobile-layout[data-page="wallet"] .wallet-reference small { margin-top:2px; font-size:7px; }
body.mobile-layout[data-page="wallet"] .wallet-product { grid-column:2 / -1; grid-row:2; min-width:0; }
body.mobile-layout[data-page="wallet"] .wallet-product strong { font-size:10px; }
body.mobile-layout[data-page="wallet"] .wallet-product small { margin-top:2px; font-size:8px; }
body.mobile-layout[data-page="wallet"] .wallet-row-numbers { grid-column:2 / -1; grid-row:3; gap:3px; padding-right:0; }
body.mobile-layout[data-page="wallet"] .wallet-row-numbers span { min-width:22px; height:20px; padding:0 3px; font-size:7px; }
body.mobile-layout[data-page="wallet"] .wallet-row-price { grid-column:3; grid-row:1; padding-right:24px; font-size:9px; white-space:nowrap; }
body.mobile-layout[data-page="wallet"] .wallet-table-row time { display:none; }
body.mobile-layout[data-page="wallet"] .wallet-status { grid-column:2; grid-row:4; min-height:20px; padding:3px 6px; font-size:7px; }
body.mobile-layout[data-page="wallet"] .wallet-result { grid-column:3; grid-row:4; max-width:110px; font-size:7px; text-align:right; }
body.mobile-layout[data-page="wallet"] .wallet-row-chevron { position:absolute; top:9px; right:8px; width:20px; height:20px; border:0; background:transparent; font-size:16px; }
body.mobile-layout[data-page="wallet"] .wallet-pagination { display:none; }
body.mobile-layout[data-page="wallet"] .wallet-empty-row { min-width:0; padding:28px 12px; }

body.mobile-layout[data-page="results"] .results-page-heading { display:none; }
body.mobile-layout[data-page="results"] .result-filter {
  flex-wrap:nowrap;
  gap:6px;
  margin:10px 0;
  padding-bottom:2px;
  overflow-x:auto;
  scrollbar-width:none;
}
body.mobile-layout[data-page="results"] .result-filter::-webkit-scrollbar { display:none; }
body.mobile-layout[data-page="results"] .result-filter button { flex:0 0 auto; min-height:30px; padding:0 10px; font-size:9px; }
body.mobile-layout[data-page="results"] .results-main-grid { display:block; }
body.mobile-layout[data-page="results"] .result-latest-card,
body.mobile-layout[data-page="results"] .result-lookup-card,
body.mobile-layout[data-page="results"] .result-history-card { border-radius:13px; box-shadow:0 5px 14px rgba(22,42,69,.045); }
body.mobile-layout[data-page="results"] .result-latest-head { display:block; padding:13px; }
body.mobile-layout[data-page="results"] .result-latest-head h3 { margin-top:5px; font-size:16px; line-height:1.25; }
body.mobile-layout[data-page="results"] .result-latest-head p { margin-top:4px; font-size:8px; }
body.mobile-layout[data-page="results"] .result-card-status { display:inline-flex; margin-top:9px; font-size:8px; }
body.mobile-layout[data-page="results"] .result-latest-body { gap:9px; padding:10px; }
body.mobile-layout[data-page="results"] .result-latest-top { display:block; }
body.mobile-layout[data-page="results"] .result-number-panel { padding:11px; }
body.mobile-layout[data-page="results"] .result-number-panel .draw-balls { flex-wrap:wrap; gap:5px; margin:10px 0 8px; }
body.mobile-layout[data-page="results"] .result-number-panel .draw-balls i { width:30px; height:30px; font-size:8px; }
body.mobile-layout[data-page="results"] .result-number-panel p { font-size:8px; }
body.mobile-layout[data-page="results"] .result-verification-panel { gap:5px; margin-top:8px; padding:10px; }
body.mobile-layout[data-page="results"] .result-verification-panel strong { font-size:12px; }
body.mobile-layout[data-page="results"] .result-verification-panel p { font-size:8px; }
body.mobile-layout[data-page="results"] .result-prize-table { overflow:hidden; }
body.mobile-layout[data-page="results"] .result-prize-head,
body.mobile-layout[data-page="results"] .result-prize-row { grid-template-columns:1.05fr 1.1fr .5fr .7fr; gap:4px; padding:0 8px; }
body.mobile-layout[data-page="results"] .result-prize-head { min-height:28px; font-size:6px; }
body.mobile-layout[data-page="results"] .result-prize-row { min-height:34px; font-size:7px; }
body.mobile-layout[data-page="results"] .result-prize-row b,
body.mobile-layout[data-page="results"] .result-prize-row em,
body.mobile-layout[data-page="results"] .result-prize-row strong { font-size:7px; }
body.mobile-layout[data-page="results"] .result-latest-foot { padding:9px 10px; }
body.mobile-layout[data-page="results"] .result-latest-foot span,
body.mobile-layout[data-page="results"] .result-latest-foot button { font-size:7px; }
body.mobile-layout[data-page="results"] .result-lookup-card { margin-top:10px; padding:12px; }
body.mobile-layout[data-page="results"] .result-lookup-head h3 { font-size:17px; }
body.mobile-layout[data-page="results"] .result-lookup-head p { font-size:8px; }
body.mobile-layout[data-page="results"] .result-history-card { display:none; }

/* Home cards must keep their content height on the mobile canvas.  The
   desktop composition uses named grid areas to make the information rail
   span two rows; leaving those areas active on a one-column phone grid makes
   the alert rail stretch to the height of the results panels. */
body.mobile-layout[data-page="home"] .home-data-grid {
  display:grid;
  grid-template-columns:1fr !important;
  grid-template-areas:none !important;
  grid-auto-rows:max-content;
  height:auto !important;
  align-items:start;
}
body.mobile-layout[data-page="home"] .home-data-grid > .latest-results,
body.mobile-layout[data-page="home"] .home-data-grid > .draw-schedule,
body.mobile-layout[data-page="home"] .home-data-grid > .home-alerts {
  grid-area:auto !important;
  align-self:start;
  height:auto;
}
body.mobile-layout[data-page="home"] .home-alerts {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
  min-height:0;
  height:max-content;
}
body.mobile-layout[data-page="home"] .home-alerts .alert-card {
  flex:0 0 auto;
  min-height:0 !important;
  height:auto !important;
  align-self:stretch;
}

@media (max-width:520px) {
  body.mobile-layout {
    width:100%;
    min-width:320px;
    height:auto;
    min-height:100dvh;
    margin:0;
    aspect-ratio:auto;
    border:0;
    border-radius:0;
    box-shadow:none;
  }
  body.mobile-layout .app-container { width:calc(100% - 24px); }
  body.mobile-layout .home-heading h1 { font-size:22px; }
  body.mobile-layout .product-tab { flex-basis:124px; min-height:132px; }
  body.mobile-layout .game-info-strip { grid-template-columns:1fr; }
  body.mobile-layout .game-info-strip div:last-child { grid-column:auto; }
  body.mobile-layout .entries-quick-actions { grid-template-columns:1fr; }
  body.mobile-layout .matrix-order-bar { align-items:stretch; flex-direction:column; gap:9px; }
  body.mobile-layout .matrix-order-bar .button { width:100%; }
  body.mobile-layout .wallet-stats { gap:7px; }
  body.mobile-layout .wallet-metric { min-height:72px; padding:10px; }
  body.mobile-layout .wallet-metric-icon { flex-basis:34px; width:34px; height:34px; }
  body.mobile-layout .wallet-metric-icon svg { width:17px; height:17px; margin:-8.5px 0 0 -8.5px; }
  body.mobile-layout .wallet-metric small { font-size:8px; }
  body.mobile-layout .wallet-metric strong { font-size:14px; }
  body.mobile-layout .account-cta-actions { grid-template-columns:1fr; }
  body.mobile-layout .mobile-nav { width:100%; padding-bottom:calc(7px + env(safe-area-inset-bottom)); height:calc(64px + env(safe-area-inset-bottom)); }
}

/* A01-A27 device chrome and account surfaces. */
body.mobile-layout .mobile-device-status {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:24px;
  padding:0 16px;
  color:#142746;
  background:#fff;
  font-family:Inter, sans-serif;
  font-size:10px;
  font-weight:800;
}
body.mobile-layout .mobile-device-status-icons { display:flex; align-items:center; gap:3px; }
body.mobile-layout .mobile-device-status-icons i { display:block; width:4px; height:4px; border-radius:50%; background:#142746; }
body.mobile-layout .mobile-device-status-icons b { display:block; width:14px; height:7px; border:1.5px solid #142746; border-radius:2px; position:relative; }
body.mobile-layout .mobile-device-status-icons b::after { content:""; position:absolute; top:1px; right:-3px; width:2px; height:3px; border-radius:0 2px 2px 0; background:#142746; }
body.mobile-layout[data-page="account"] [data-page-view]:not([data-page-view="account"]) { display:none !important; }
body.mobile-layout[data-page="account"] .account-section { display:block !important; }
body.mobile-layout .site-header { top:0; }
body.mobile-layout .site-footer { display:none; }
body.mobile-layout main { padding-bottom:16px; }
body.mobile-layout .primary-nav { position:absolute; z-index:49; top:56px; right:0; left:0; display:grid; width:100%; max-width:none; align-content:start; gap:0; margin:0; padding:12px 16px 18px; box-sizing:border-box; border-top:1px solid var(--line); background:#fff; transform:translateX(100%); transition:transform .22s ease; }
body.mobile-layout .primary-nav.is-open { transform:translateX(0); }
body.mobile-layout .primary-nav.is-open { min-height:calc(844px - 56px); box-sizing:border-box; }
body.mobile-layout .primary-nav a { min-height:48px; border-bottom:1px solid var(--line); font-size:14px; }
body.mobile-layout .primary-nav a.is-active::after { display:none; }
body.mobile-layout .menu-toggle { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:4px; width:40px; height:40px; padding:0; border:1px solid #dfe6ed; border-radius:10px; background:#fff; }
body.mobile-layout .menu-toggle span { display:block; width:16px; height:2px; border-radius:2px; background:#142746; }
body.mobile-layout .draw-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:10px; row-gap:3px; }
body.mobile-layout .draw-card > div { min-width:0; }
body.mobile-layout .draw-card small { color:transparent; font-size:0; white-space:nowrap; }
body.mobile-layout .draw-card small::after { color:#98a5b1; content:'ĐÓNG BÁN SAU'; font-size:8px; font-weight:800; letter-spacing:.08em; }
body.mobile-layout .draw-card strong,
body.mobile-layout .draw-card em { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.mobile-layout .draw-card > b { grid-column:2; grid-row:1 / span 3; align-self:center; }
body.mobile-layout .power-jackpot-strip { grid-template-columns:1fr 1fr; gap:8px 10px; }
body.mobile-layout .power-jackpot-strip small { grid-column:1 / -1; text-align:left; }
body.mobile-layout .game-guide { margin-top:12px; padding:14px; border-radius:14px; }
body.mobile-layout .game-guide-head { display:block; padding-bottom:10px; }
body.mobile-layout .game-guide-head h3 { margin-top:4px; font-size:16px; }
body.mobile-layout .game-guide-head > div > p:last-child { font-size:10px; line-height:1.5; }
body.mobile-layout .guide-source { display:inline-flex; margin-top:10px; min-height:34px; font-size:9px; }
body.mobile-layout .game-guide-grid { grid-template-columns:1fr; gap:12px; padding-top:12px; }
body.mobile-layout .guide-steps ol { gap:8px; }
body.mobile-layout .guide-steps li { grid-template-columns:22px minmax(0,1fr); gap:8px; font-size:10px; line-height:1.45; }
body.mobile-layout .guide-steps li::before { width:22px; height:22px; border-radius:7px; font-size:9px; }
body.mobile-layout .guide-details { grid-template-columns:1fr; border-radius:9px; }
body.mobile-layout .guide-details div { min-height:0; padding:10px; }
body.mobile-layout .guide-details span { font-size:8px; }
body.mobile-layout .guide-details strong { font-size:10px; line-height:1.4; }
body.mobile-layout .game-guide-note { font-size:9px; line-height:1.45; }
body.mobile-layout .mobile-account-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
body.mobile-layout .mobile-account-header h2 { margin:4px 0 0; font-size:26px; line-height:1.1; }
body.mobile-layout .mobile-account-header p:not(.section-kicker) { max-width:300px; margin:8px 0 0; color:#74849b; font-size:11px; line-height:1.5; }
body.mobile-layout .mobile-account-card,
body.mobile-layout .mobile-account-group,
body.mobile-layout .mobile-account-note { border:1px solid #e3e9f0; border-radius:14px; background:#fff; box-shadow:0 8px 20px rgba(16,34,67,.05); }
body.mobile-layout .mobile-account-card { padding:14px; }
body.mobile-layout .mobile-account-profile { display:flex; align-items:center; gap:10px; }
body.mobile-layout .mobile-account-avatar { display:grid; width:44px; height:44px; place-items:center; flex:none; border-radius:50%; color:#fff; background:#102243; font-size:14px; font-weight:800; }
body.mobile-layout .mobile-account-profile strong { display:block; color:#1b304e; font-size:13px; }
body.mobile-layout .mobile-account-profile small { display:block; margin-top:3px; color:#91a0b1; font-size:9px; }
body.mobile-layout .mobile-account-chevron { margin-left:auto; color:#9aa8b8; font-size:24px; line-height:1; }
body.mobile-layout .mobile-account-status { display:flex; gap:8px; margin-top:12px; }
body.mobile-layout .mobile-account-status span,
body.mobile-layout .mobile-account-status b { padding:5px 8px; border-radius:999px; font-size:9px; font-weight:800; }
body.mobile-layout .mobile-account-status span { color:#188751; background:#e8f8ef; }
body.mobile-layout .mobile-account-status span i { display:inline-block; width:6px; height:6px; margin-right:4px; border-radius:50%; background:#18a566; }
body.mobile-layout .mobile-account-status b { color:#386bd1; background:#edf3ff; }
body.mobile-layout .mobile-account-group { margin-top:12px; overflow:hidden; }
body.mobile-layout .mobile-group-label { margin:0; padding:11px 13px 7px; color:#9aa7b7; font-size:9px; font-weight:800; letter-spacing:.12em; }
body.mobile-layout .mobile-account-group button { display:flex; align-items:center; width:100%; min-height:56px; gap:9px; padding:10px 13px; border:0; border-top:1px solid #eef2f6; color:#1b304e; background:#fff; text-align:left; }
body.mobile-layout .mobile-account-group button:first-of-type { border-top:0; }
body.mobile-layout .mobile-account-group button > span:nth-child(2) { min-width:0; flex:1; }
body.mobile-layout .mobile-account-group button strong,
body.mobile-layout .mobile-account-group button small { display:block; }
body.mobile-layout .mobile-account-group button strong { font-size:11px; }
body.mobile-layout .mobile-account-group button small { margin-top:2px; color:#97a5b5; font-size:9px; line-height:1.35; }
body.mobile-layout .mobile-row-icon { display:grid; width:28px; height:28px; place-items:center; flex:none; border-radius:9px; font-size:13px; font-weight:800; }
body.mobile-layout .mobile-row-icon.is-green { color:#159263; background:#e9f8ef; }
body.mobile-layout .mobile-row-icon.is-blue { color:#3c76da; background:#edf3ff; }
body.mobile-layout .mobile-row-icon.is-purple { color:#7e50d9; background:#f2edff; }
body.mobile-layout .mobile-row-icon.is-orange { color:#c98513; background:#fff5df; }
body.mobile-layout .mobile-account-group button em { color:#a8b3c0; font-size:18px; font-style:normal; }
body.mobile-layout .mobile-toggle { width:30px; height:17px; border-radius:999px; background:#d9e1ea; position:relative; }
body.mobile-layout .mobile-toggle::after { content:""; position:absolute; top:2px; left:2px; width:13px; height:13px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(16,34,67,.18); }
body.mobile-layout .mobile-toggle.is-on { background:#19a767; }
body.mobile-layout .mobile-toggle.is-on::after { left:15px; }
body.mobile-layout .mobile-notification-count { display:grid; min-width:20px; height:20px; place-items:center; border-radius:50%; color:#e2232a; background:#fff0f1; font-size:9px; }
body.mobile-layout .mobile-account-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
body.mobile-layout .mobile-account-actions .button { min-height:44px; padding:0 8px; font-size:10px; }
body.mobile-layout .mobile-account-note { display:flex; align-items:flex-start; gap:8px; margin-top:12px; padding:11px 12px; color:#77879c; background:#fff9e8; border-color:#f5df9f; box-shadow:none; }
body.mobile-layout .mobile-account-note > span { display:grid; width:18px; height:18px; place-items:center; flex:none; border:1px solid #e4b744; border-radius:50%; color:#bd8515; font-size:10px; }
body.mobile-layout .mobile-account-note p { margin:0; font-size:9px; line-height:1.45; }

@media (max-width:520px) {
  body.mobile-layout { height:auto; min-height:100dvh; }
  body.mobile-layout .primary-nav.is-open { min-height:calc(100dvh - 56px); }
}

/* Keep the home dashboard readable when it is shown inside the desktop-sized
   device preview. Media queries see the browser window, not the phone shell. */
body.mobile-layout[data-page="home"] .home-data-grid {
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-areas:none !important;
}
body.mobile-layout[data-page="home"] .home-data-grid > *,
body.mobile-layout[data-page="home"] .home-panel,
body.mobile-layout[data-page="home"] .result-tiles,
body.mobile-layout[data-page="home"] .result-tile,
body.mobile-layout[data-page="home"] .result-tile > *,
body.mobile-layout[data-page="home"] .home-alerts,
body.mobile-layout[data-page="home"] .alert-card,
body.mobile-layout[data-page="home"] .alert-card > div,
body.mobile-layout[data-page="home"] .schedule-table,
body.mobile-layout[data-page="home"] .schedule-row > * {
  min-width:0;
  max-width:100%;
}
body.mobile-layout[data-page="home"] .result-tiles {
  grid-template-columns:minmax(0,1fr) !important;
}
body.mobile-layout[data-page="home"] .result-tile {
  grid-template-columns:minmax(0,1fr);
  gap:8px;
}
body.mobile-layout[data-page="home"] .result-tile small {
  white-space:normal;
  overflow-wrap:anywhere;
}
body.mobile-layout[data-page="home"] .mini-balls {
  flex-wrap:wrap;
  max-width:100%;
}
body.mobile-layout[data-page="home"] .schedule-row {
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-areas:"product close" "draw draw" !important;
  align-items:start;
  row-gap:3px;
  min-height:0;
  padding:8px 0;
}
body.mobile-layout[data-page="home"] .schedule-row b { grid-area:product; }
body.mobile-layout[data-page="home"] .schedule-row em {
  grid-area:close;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:right;
}
body.mobile-layout[data-page="home"] .schedule-row span {
  grid-area:draw;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.4;
}
body.mobile-layout[data-page="home"] .alert-card > div { flex:1 1 auto; }
body.mobile-layout[data-page="home"] .alert-card strong,
body.mobile-layout[data-page="home"] .alert-card p { overflow-wrap:anywhere; }
body.mobile-layout[data-page="home"] .panel-title-row { flex-wrap:wrap; }
body.mobile-layout[data-page="home"] .panel-title-row > div { min-width:0; }
body.mobile-layout[data-page="home"] .panel-title-row > a {
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
}

/* Use the actual viewport instead of the reference site's framed phone mockup. */
html:has(body.mobile-layout) { overflow-x:hidden; overflow-y:auto; }
body.mobile-layout {
  position:static;
  width:100%;
  min-width:0;
  height:auto;
  min-height:100dvh;
  margin:0;
  aspect-ratio:auto;
  overflow-x:hidden;
  overflow-y:visible;
  border:0;
  border-radius:0;
  box-shadow:none;
}
body.mobile-layout main { overflow:visible; }
