:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #172b45;
  background: #f5f8fc;
  font-synthesis: none;
}
.analysis-panel { margin: 28px 0; padding: 26px; background: #fff; border: 1px solid #d4e5ee; border-radius: 12px; min-width: 0; overflow-wrap: anywhere; }
.analysis-panel h1, .analysis-panel h2 { margin: 12px 0; }
.analysis-panel p { margin: 12px 0; line-height: 1.8; }
.muted { color: #526a80; font-size: 13px; }
.risk-note { padding: 12px; background: #fff8e8; color: #735113; border-radius: 6px; font-size: 13px; }
.form-error { padding: 12px; background: #fff1f3; color: #a31528; border: 1px solid #e8a8b1; border-radius: 6px; }
.result-banner { color: #06647a; font-weight: 700; font-size: 19px; }
.ticket-numbers { display: flex; flex-wrap: wrap; gap: 20px; margin: 18px 0; }
.number-group small { display: block; color: #526a80; margin-bottom: 8px; }
.research-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.research-metrics small { display: block; color: #526a80; }
.research-metrics strong { display: block; margin-top: 8px; font-size: 24px; }
.score-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.score-grid span { border: 1px solid #d4e5ee; padding: 6px; border-radius: 4px; font-size: 12px; }
.score-grid b { color: #08788e; margin-left: 6px; }
.data-form { display: flex; flex-direction: column; gap: 18px; margin: 20px 0; }
.data-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.data-form input, .data-form select { max-width: 100%; min-height: 44px; padding: 10px; border: 1px solid #a7bfce; background: #fff; border-radius: 6px; color: #172b45; font: inherit; }
.data-form input:focus, .data-form select:focus, button:focus-visible { outline: 2px solid #08788e; outline-offset: 2px; }
.data-form .check-label { flex-direction: row; align-items: center; }
.selector-form { flex-direction: row; align-items: end; flex-wrap: wrap; }
.selector-form select { min-width: 190px; }
.auth-panel { max-width: 500px; margin: 50px auto; }
button { cursor: pointer; font-family: inherit; }
button.button { border: 1px solid #b5d4e0; }
.text-button { border: 0; background: transparent; color: #08788e; padding: 6px; }
.picker-field { min-width: 0; border: 1px solid #d4e5ee; border-radius: 8px; padding: 16px; }
.picker-field > input { width: 100%; }
.picker-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.picker-row > span { width: 55px; font-size: 12px; }
.pick-ball { width: 38px; height: 38px; border: 1px solid; border-radius: 50%; font-size: 14px; font-weight: 700; background: white; }
.pick-red { color: #c12839; border-color: #c12839; }
.pick-blue { color: #145fc3; border-color: #145fc3; }
.pick-red[aria-pressed="true"] { background: #c12839; color: #fff; }
.pick-blue[aria-pressed="true"] { background: #145fc3; color: #fff; }
@media (max-width: 700px) {
  .analysis-panel { padding: 18px; }
  .research-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 75% 4%, #e1f3f8 0, transparent 39%), #f5f8fc; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, .table-wrap:focus-visible { outline: 2px solid #08788e; outline-offset: 4px; }
.container { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
.topbar { border-bottom: 1px solid #dce7f0; background: rgba(255, 255, 255, .94); }
.topbar-inner { height: 76px; display: flex; align-items: center; gap: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #b6dce5; border-radius: 10px; color: #087c92; background: #e6f5f8; font-size: 23px; }
.brand-name { font-size: 15px; font-weight: 750; letter-spacing: .04em; }
.brand-name small { display: block; margin-top: 3px; color: #60788d; font-size: 8px; letter-spacing: .14em; }
.top-nav { display: flex; align-self: stretch; gap: 32px; }
.top-nav a { display: flex; align-items: center; color: #536a80; font-size: 13px; text-decoration: none; transition: color .2s; }
.top-nav a:hover { color: #08788e; }
.header-status { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #536a80; font-size: 12px; white-space: nowrap; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #008f78; box-shadow: 0 0 10px #008f7860; }
.dashboard-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 405px; gap: 55px; align-items: center; padding: 82px 0 60px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #08788e; font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.eyebrow-line { width: 20px; height: 2px; background: #0a99ae; }
h1, h2, h3, p { margin: 0; }
.hero-copy h1 { margin: 24px 0 19px; font-size: clamp(38px, 4.8vw, 62px); line-height: 1.2; letter-spacing: -.055em; }
.hero-copy h1 span { color: #087e98; }
.hero-copy > p { max-width: 490px; color: #526a80; font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 23px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 46px; padding: 0 18px; border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none; }
.button-primary { background: #087e98; color: #fff; }
.button-primary:hover { background: #06647a; }
.hero-hint { display: inline-flex; gap: 8px; align-items: center; color: #526a80; font-size: 12px; }
.hero-panel { position: relative; overflow: hidden; padding: 23px 26px 20px; border: 1px solid #d4e5ee; border-radius: 12px; background: linear-gradient(135deg, #fff, #edf8fb 76%); box-shadow: 0 18px 55px #1a5b7817; }
.hero-panel::after { position: absolute; top: 54px; right: -100px; width: 250px; height: 250px; border: 1px solid #79b9c744; border-radius: 50%; box-shadow: 0 0 0 35px #79b9c70c, 0 0 0 70px #79b9c70c; content: ""; pointer-events: none; }
.panel-top, .panel-foot { display: flex; justify-content: space-between; align-items: center; color: #61798d; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.panel-tag { padding: 5px 8px; border: 1px solid #b2dce4; border-radius: 4px; color: #08788e; font-size: 10px; letter-spacing: 0; }
.hero-metric { position: relative; z-index: 1; padding: 32px 0 25px; }
.hero-metric > span, .panel-stats span, .card-metrics span, .detail-stats span { display: block; color: #526a80; font-size: 12px; }
.hero-metric strong { display: block; margin: 9px 0; font-size: 45px; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero-metric strong small, .card-metrics small, .detail-stats small { color: #5e758a; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.hero-metric p { color: #5a7185; font-size: 12px; }
.panel-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 19px 0 21px; border-top: 1px solid #d7e8ef; }
.panel-stats strong { display: block; margin-top: 9px; color: #213b50; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.panel-foot { padding-top: 15px; border-top: 1px solid #d7e8ef; }
.workspace-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px 19px; border: 1px solid #cfe3eb; border-radius: 8px; background: #edf7fa; }
.note-icon { display: grid; flex: 0 0 auto; place-items: center; width: 18px; height: 18px; border: 1px solid #087e98; border-radius: 50%; color: #08788e; font-size: 11px; font-weight: 700; }
.workspace-note p { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #465f73; font-size: 12px; line-height: 1.6; }
.workspace-note strong { color: #1c4156; font-weight: 600; white-space: nowrap; }
.games-section { padding-top: 78px; scroll-margin-top: 25px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.section-title h2 { margin-top: 13px; font-size: 25px; font-weight: 650; letter-spacing: -.03em; }
.section-title p { margin-top: 9px; color: #526a80; font-size: 13px; }
.section-count { margin-left: 8px; color: #5b778e; font-size: 12px; font-weight: 500; vertical-align: middle; }
.section-caption { color: #5b7489; font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
.section-caption b { margin-left: 8px; color: #08788e; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: block; min-width: 0; padding: 21px; border: 1px solid #dce7ef; border-radius: 10px; color: inherit; background: #fff; box-shadow: 0 6px 22px #1b55720b; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.card:hover { transform: translateY(-4px); border-color: #63afbd; background: #f9fdfe; }
.card-top { display: flex; align-items: center; gap: 9px; }
.badge, .detail-badge { padding: 5px 8px; border: 1px solid #b7dfe5; border-radius: 5px; background: #e8f7f8; color: #087187; font-size: 10px; font-weight: 600; }
.card-code { color: #60798d; font-size: 10px; letter-spacing: .09em; }
.arrow { display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border: 1px solid #cde2e9; border-radius: 50%; color: #08788e; font-size: 14px; }
.card h3 { margin-top: 25px; font-size: 20px; font-weight: 650; }
.card-description { min-height: 42px; margin-top: 9px; color: #526a80; font-size: 12px; line-height: 1.7; }
.card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px 0; border-top: 1px solid #e1ebf1; }
.card-metrics span { font-size: 11px; }
.card-metrics strong { display: block; margin-top: 8px; color: #213b50; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 15px; border-top: 1px solid #e1ebf1; color: #536a80; font-size: 11px; }
.schedule span:last-child { color: #08788e; white-space: nowrap; }
.schedule b { margin-left: 5px; font-weight: 400; }
.breadcrumb { display: flex; align-items: center; gap: 10px; padding: 28px 0; color: #6a8194; font-size: 12px; }
.breadcrumb a { color: #526a80; text-decoration: none; }
.breadcrumb a:hover { color: #08788e; }
.breadcrumb span:last-child { color: #25435a; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: end; padding: 33px; border: 1px solid #d4e5ee; border-radius: 12px; background: linear-gradient(125deg, #fff, #eff9fb 60%, #e7f4f9); }
.detail-code { padding-left: 5px; color: #607f90; }
.detail-intro h1 { display: flex; align-items: center; gap: 13px; margin-top: 18px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.04em; }
.detail-intro p { margin-top: 10px; color: #526a80; font-size: 14px; line-height: 1.7; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.detail-tags span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #c8dfe8; border-radius: 5px; color: #486679; font-size: 11px; }
.detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 22px; border: 1px solid #d3e6ee; border-radius: 8px; background: #ffffffc9; }
.detail-stats strong { display: block; margin-top: 10px; color: #213b50; font-size: clamp(14px, 1.45vw, 19px); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-note { margin-top: 16px; }
.history-title { margin-top: 58px; }
.history-count { padding: 8px 11px; border: 1px solid #d4e3ec; border-radius: 6px; color: #526a80; font-size: 12px; white-space: nowrap; }
.history-count i { display: inline-block; width: 3px; height: 3px; margin: 0 7px 3px; border-radius: 50%; background: #66869d; }
.table-hint { display: none; margin: 0 0 10px; color: #526a80; font-size: 11px; }
.table-wrap { overflow-x: auto; border: 1px solid #d7e4ed; border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.table-wrap > table > thead { background: #eef5f9; }
th, td { padding: 16px; border-bottom: 1px solid #e4edf2; }
th { color: #526b7d; font-size: 12px; font-weight: 500; white-space: nowrap; }
td { color: #334e62; overflow-wrap: anywhere; }
.table-wrap > table > tbody > tr:hover { background: #f4fafc; }
.table-wrap > table > tbody > tr:last-child > td { border-bottom: 0; }
.table-wrap > table > tbody > tr > td:first-child { color: #213b50; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balls { display: flex; gap: 5px; flex-wrap: wrap; min-width: 90px; }
.ball { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 50%; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ball.front { border-color: #b31f32; color: #fff; background: #c12839; }
.ball.back-ball { border-color: #1054ad; color: #fff; background: #145fc3; }
.draw-details { min-width: 120px; max-width: 520px; font-size: 12px; line-height: 1.6; }
.draw-details summary { color: #08748b; cursor: pointer; white-space: nowrap; }
.draw-details p { margin: 9px 0; color: #526a80; overflow-wrap: anywhere; }
.prizes { min-width: 280px; margin: 12px 0; font-size: 12px; }
.prizes th, .prizes td { padding: 7px; }
.empty { padding: 48px 16px; text-align: center; color: #61788b; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 25px; color: #526a80; font-size: 12px; }
.pagination a { padding: 8px 12px; border: 1px solid #cbdfe8; border-radius: 5px; color: #08748b; text-decoration: none; }
.pagination a:hover { background: #e8f5f8; }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 85px; padding: 25px 0 35px; border-top: 1px solid #dce7ef; color: #5c7285; font-size: 11px; line-height: 1.7; }
.footer span:first-child { color: #526d80; letter-spacing: .06em; white-space: nowrap; }
.footer b { color: #08788e; }
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-hero { grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; }
  .detail-hero { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .container { width: calc(100% - 32px); }
  .topbar-inner { height: auto; min-height: 100px; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
  .top-nav { margin-left: auto; gap: 15px; align-self: center; flex-wrap: wrap; }
  .top-nav a { font-size: 12px; }
  .header-status { display: flex; width: 100%; justify-content: flex-end; }
  .dashboard-hero { grid-template-columns: 1fr; padding: 55px 0 30px; }
  .hero-copy h1 { margin-top: 19px; }
  .hero-panel { padding: 20px; }
  .hero-metric { padding: 23px 0 19px; }
  .hero-metric strong { font-size: 38px; }
  .games-section { padding-top: 55px; }
  .section-caption { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card h3 { margin-top: 18px; }
  .card-description { min-height: 0; margin-bottom: 18px; }
  .breadcrumb { flex-wrap: wrap; padding: 22px 0; }
  .detail-hero { padding: 24px 20px; }
  .detail-stats { grid-template-columns: 1fr 1fr; padding: 16px; }
  .detail-stats strong { font-size: 16px; }
  .history-title { margin-top: 45px; align-items: flex-start; flex-direction: column; }
  .table-hint { display: block; }
  .table-wrap > table { min-width: 620px; }
  .footer { flex-direction: column; margin-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .top-nav a { transition: none; }
}
