:root {
    color-scheme: light;
    --blue: #405fa7;
    --cyan: #43bdd8;
    --green: #36a979;
    --yellow: #d9b51d;
    --red: #ee3141;
    --teal: #46b8b8;
    --ink: #333;
    --muted: #7e838c;
    --line: #dedede;
    --paper: #fff;
    --wash: #eaeaea;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--wash);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body {
    margin: 0;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.topbar,
.layout,
.footer {
    width: min(980px, 100%);
    margin-inline: auto;
    background: var(--paper);
}

.topbar {
    margin-top: 8px;
    border: 1px solid #d7d7d7;
    box-shadow: 0 0 5px rgb(0 0 0 / 18%);
}

.brand {
    min-height: 112px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #fff;
    background:
        linear-gradient(120deg, rgb(15 22 31 / 96%), rgb(45 50 57 / 90%)),
        repeating-linear-gradient(135deg, transparent 0 26px, rgb(255 255 255 / 7%) 26px 28px);
    text-align: left;
}

.site-ad {
    width: 100%;
    overflow: hidden;
    background: #20262e;
}

.site-ad[hidden],
.brand[hidden] {
    display: none;
}

.site-ad__link {
    width: 100%;
    display: block;
}

.site-ad__link:not([href]) {
    cursor: default;
}

.site-ad__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

.brand__mark {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border: 2px solid #efcf70;
    border-radius: 50%;
    color: #efcf70;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.brand__name {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .05em;
}

.brand__note {
    margin-top: 7px;
    color: rgb(255 255 255 / 68%);
    font-size: 13px;
}

.entry-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.entry-nav a {
    min-width: 0;
    height: 40px;
    display: grid;
    place-items: center;
    position: relative;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: #333;
    background: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 140ms ease, background-color 140ms ease;
}

.entry-nav a:nth-child(3n) {
    border-right: 0;
}

.entry-nav a:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.entry-nav a:hover {
    background: #fafafa;
}

.entry-nav a[aria-current="page"] {
    color: #397ae3;
    background: #f7f7f7;
}

.entry-nav a[aria-current="page"]::after {
    content: "";
    height: 2px;
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    background: #fe474b;
}

.layout {
    padding: 14px 8px 0;
    box-shadow: 0 2px 5px rgb(0 0 0 / 12%);
    transform-origin: top center;
    transition: opacity 140ms ease, transform 140ms ease;
}

.layout.is-switching {
    opacity: .62;
    transform: translateY(2px);
    pointer-events: none;
}

.layout.is-entering {
    animation: entry-content-in 200ms ease-out both;
}

@keyframes entry-content-in {
    from {
        opacity: .76;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .entry-nav a,
    .layout {
        transition: none;
    }

    .layout.is-entering {
        animation: none;
    }

    .loading-dots i {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

.hero {
    padding: 8px;
    border: 1px solid var(--line);
    background: #f6f5f5;
}

.hero__main,
.hero__clock {
    border: 1px solid var(--line);
    background: #fff;
}

.hero__main {
    text-align: center;
}

.hero__identity {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.hero__emblem {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    color: var(--red);
    font-size: 21px;
    object-fit: contain;
}

.hero h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.issue-line {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.hero__result {
    min-height: 72px;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.balls {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ball {
    min-width: 39px;
    height: 39px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 2px;
    color: #fff;
    background: var(--teal);
    font-size: 21px;
    font-weight: 500;
}

.ball--sum {
    background: #37a779;
}

.operator {
    color: #444;
    font-size: 16px;
}

.result-tags {
    min-height: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.result-tag {
    min-width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
}

.result-tag--size {
    background: #3599db;
}

.result-tag--parity {
    background: #e51b2b;
}

.hero__clock {
    min-height: 72px;
    margin-top: 5px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.clock__countdown,
.clock__waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.clock__waiting {
    min-height: 39px;
    color: #4f535a;
    font-size: 14px;
}

.loading-dots {
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.loading-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e83c4b;
    animation: loading-dot 1.1s ease-in-out infinite;
}

.loading-dots i:nth-child(2) {
    animation-delay: .15s;
}

.loading-dots i:nth-child(3) {
    animation-delay: .3s;
}

.loading-dots--light i {
    background: #fff;
}

@keyframes loading-dot {
    0%, 60%, 100% {
        opacity: .28;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.six-hero {
    min-height: 160px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 200px;
    gap: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 5px rgb(0 0 0 / 18%);
}

.six-hero[hidden] {
    display: none;
}

.view--six .layout {
    padding: 22px 0 0;
    background: transparent;
    box-shadow: none;
}

.view--six .footer {
    display: none;
}

.six-hero__logo {
    display: grid;
    place-items: center;
    border-right: 1px solid #e5e5e5;
}

.six-hero__logo img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.six-hero__current {
    min-width: 0;
    padding: 0 14px;
    border-right: 1px solid #e5e5e5;
}

.six-hero__current-head,
.six-hero__next-head {
    min-height: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: #3b3b3b;
    font-size: 14px;
}

.six-hero__current-head strong,
.six-hero__next-head strong {
    color: #f27547;
    font-weight: 500;
}

.six-hero__current-head time,
.six-hero__next-head time {
    color: #3b3b3b;
}

.six-hero__next {
    padding-left: 20px;
}

.six-hero__clock-card {
    height: 98px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 5px;
    text-align: center;
}

.six-hero__clock-card div,
.six-hero__clock-card strong {
    display: grid;
    place-items: center;
}

.six-hero__clock-card div {
    background: #fee2c3;
    font-size: 16px;
}

.six-hero__clock-card strong {
    color: #3e3e3e;
    font: 700 15px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .06em;
}

.six-hero__mobile-title,
.six-hero__mobile-meta {
    display: none;
}

.six-balls {
    min-height: 92px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
}

.six-balls__empty {
    width: 100%;
    min-height: 80px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 14px;
}

.six-number {
    min-width: 36px;
    display: inline-grid;
    grid-template-rows: 38px 22px 22px;
    justify-items: center;
    color: #222;
    font-size: 15px;
    line-height: 1;
}

.six-number__ball {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border: 3px solid;
    border-radius: 50%;
    color: #090a2f;
    background: radial-gradient(circle at 38% 32%, #fff 0 42%, #e9edf2 72%, #b9c1ca 100%);
    font-size: 16px;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 75%), 0 1px 2px rgb(0 0 0 / 16%);
}

.six-number__ball--red {
    border-color: #d84125;
}

.six-number__ball--blue {
    border-color: #384fff;
}

.six-number__ball--green {
    border-color: #27bf00;
}

.six-number__zodiac,
.six-number__element {
    display: grid;
    place-items: center;
}

.six-balls__plus {
    min-width: 20px;
    padding-top: 12px;
    color: #111;
    font-size: 20px;
    font-weight: 700;
}

.six-balls__sum {
    min-width: 48px;
    display: grid;
    grid-template-rows: 40px 38px;
    place-items: center;
    color: #3b3b3b;
    font-size: 15px;
    font-weight: 700;
}

.six-balls__sum strong {
    font-size: 17px;
}

.clock__label,
.clock__time {
    color: #4f535a;
    font-size: 13px;
}

.clock__digit {
    min-width: 48px;
    padding: 4px 8px;
    color: #fff;
    background: #e83c4b;
    font: 400 28px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    text-align: center;
}

.scratch-launch {
    min-height: 51px;
    margin-top: 9px;
    display: grid;
    place-items: center;
    background: #fff;
}

.scratch-launch__button {
    width: 200px;
    height: 35px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: red;
    cursor: pointer;
    font-size: 15px;
}

.scratch-launch__button:hover,
.scratch-launch__button:focus-visible {
    background: #b40000;
}

.scratch-launch__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.scratch-overlay {
    width: 100vw;
    height: 100%;
    padding: 8px;
    position: fixed;
    z-index: 9999;
    inset: 0;
    overflow: hidden;
    background: #484545;
}

.scratch-overlay:not([hidden]) {
    display: grid;
    place-items: center;
}

.scratch-dialog {
    width: min(350px, calc(100vw - 16px));
    height: 300px;
    padding: 10px;
    position: relative;
    background: #f42c1f url("/assets/default/scratch-card.png") center / 100% 100% no-repeat;
    font-size: 17px;
}

.scratch-dialog__meta {
    min-height: 72px;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #fff;
    font-size: 18px;
}

#scratch-issue {
    padding-inline: 4px;
    color: #ffbca8;
}

.scratch-dialog__countdown {
    margin-top: 3px;
    font-size: 15px;
}

#scratch-countdown {
    min-width: 34px;
    margin-inline: 4px;
    padding: 1px 5px;
    display: inline-block;
    color: #fff;
    background: #e83c4b;
    text-align: center;
}

.scratch-surface {
    width: min(310px, calc(100% - 10px));
    height: 100px;
    margin-inline: auto;
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    color: red;
    background: #fff;
}

.scratch-result {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: red;
    font-family: "Microsoft YaHei", sans-serif;
    white-space: nowrap;
}

.scratch-result__number {
    font-size: clamp(42px, 16vw, 60px);
}

.scratch-result__operator {
    padding-inline: 5px;
    color: red;
    font-size: 20px;
}

.scratch-result__operator--equals {
    font-size: 30px;
}

#scratch-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    cursor: crosshair;
    touch-action: none;
}

.scratch-dialog__hint {
    width: 100%;
    margin-top: 12px;
    color: #fff;
    text-align: center;
    cursor: default;
}

.scratch-dialog__actions {
    width: 60%;
    margin: 6px auto 0;
    display: flex;
    justify-content: space-around;
}

.scratch-action {
    padding: 1px 13px;
    border: 0;
    color: #000;
    background: #ffe258;
    cursor: pointer;
    line-height: 36px;
}

.scratch-action--close {
    background: #ccc;
}

.scratch-action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.scratch-is-open {
    overflow: hidden;
}

.visually-hidden {
    width: 1px;
    height: 1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.tabs {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.tab {
    min-width: 0;
    padding: 10px 6px;
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.tab--history {
    background: var(--blue);
}

.tab--prediction {
    background: var(--green);
}

.tab--trend {
    background: var(--cyan);
}

.tab--stats {
    background: var(--yellow);
}

.tab:hover,
.tab:focus-visible,
.tab[aria-selected="true"] {
    filter: brightness(.88);
    outline: none;
}

.tab[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 rgb(255 255 255 / 78%);
}

.tab__icon {
    margin-right: 5px;
    font-size: 16px;
}

.panel {
    display: none;
    min-height: 320px;
    padding: 12px 8px 20px;
    border: 1px solid var(--line);
    border-top: 0;
    background: #fff;
}

.panel.is-active {
    display: block;
}

.panel h3 {
    margin: 0 0 10px;
    color: #5e626a;
    font-size: 14px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

th,
td {
    padding: 7px 6px;
    overflow: hidden;
    border: 1px solid #e4e7ed;
    color: #606266;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th {
    color: #303133;
    background: #f5f6f8;
    font-weight: 700;
}

th:first-child,
td:first-child {
    width: 25%;
}

th:nth-child(2),
td:nth-child(2) {
    width: 31%;
}

th:nth-child(3),
td:nth-child(3) {
    width: 44%;
}

.equation {
    color: #3f454e;
}

.mini-balls {
    display: inline-flex;
    justify-content: center;
    gap: 4px;
}

.mini-ball {
    min-width: 23px;
    height: 23px;
    padding: 0 4px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #e84c47;
    font-size: 10px;
    font-weight: 700;
}

.panel--six {
    min-height: 188px;
    margin-top: 28px;
    padding: 24px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 5px rgb(0 0 0 / 18%);
}

.panel--six h3 {
    margin: 0 0 12px;
    color: #222;
    font-size: 20px;
    font-weight: 500;
}

.panel--six h3::before {
    content: "❉";
    margin-right: 10px;
    color: #f27547;
    font-size: 22px;
}

.six-history-modes {
    display: none;
}

.six-history-table {
    table-layout: auto;
    font-size: 13px;
}

.six-history-table th,
.six-history-table td {
    border-color: #eadfd3;
}

.six-history-table th {
    color: #8c8986;
    background: linear-gradient(#fff8ee, #fffdf9);
    font-weight: 400;
}

.six-history-table th:first-child,
.six-history-table td:first-child {
    width: 5%;
}

.six-history-table th:nth-child(2),
.six-history-table td:nth-child(2) {
    width: 11%;
}

.six-history-table th:nth-child(3),
.six-history-table td:nth-child(3) {
    width: 10%;
}

.six-history-table th:nth-child(4),
.six-history-table td:nth-child(4) {
    width: 43%;
}

.six-history-table th:nth-child(n + 5),
.six-history-table td:nth-child(n + 5) {
    width: 8%;
}

.six-history-numbers {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.six-number--compact {
    min-width: 28px;
    grid-template-rows: 29px 18px;
    font-size: 11px;
}

.six-number--compact .six-number__ball {
    width: 28px;
    height: 28px;
    border-width: 2px;
    font-size: 12px;
}

.six-history-plus {
    padding: 7px 2px 0;
    color: #222;
    font-weight: 700;
}

.six-wave-label--red {
    color: #d84125;
}

.six-wave-label--blue {
    color: #384fff;
}

.six-wave-label--green {
    color: #15981a;
}

.six-more {
    min-width: 205px;
    height: 47px;
    margin: 12px auto 0;
    display: block;
    border: 1px solid #f27547;
    border-radius: 5px;
    color: #dc764e;
    background: #fff;
    cursor: pointer;
    font-size: 17px;
}

.six-more[hidden] {
    display: none;
}

.six-more:hover,
.six-more:focus-visible {
    color: #fff;
    background: #f27547;
    outline: none;
}

.history-more {
    min-width: 205px;
    height: 40px;
    margin: 12px auto 0;
    display: block;
    border: 1px solid #d92b2b;
    border-radius: 4px;
    color: #fff;
    background: #e33a3a;
    cursor: pointer;
    font-size: 15px;
}

.history-more[hidden] {
    display: none;
}

.history-more:hover:not(:disabled),
.history-more:focus-visible:not(:disabled) {
    background: #b40000;
    outline: none;
}

.history-more:disabled {
    border-color: #c7c7c7;
    color: #777;
    background: #eee;
    cursor: default;
}

.panel--six .empty {
    min-height: 52px;
}

.empty {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.legacy-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 2px;
}

.legacy-table {
    background: #fff;
}

.legacy-table--prediction {
    min-width: 540px;
}

.legacy-table--trend {
    min-width: 760px;
    font-size: 13px;
}

.legacy-table--stats {
    min-width: 500px;
}

.legacy-table tbody tr:nth-child(even):not(.legacy-table__section) td {
    background: #f9f9f9;
}

.legacy-table th,
.legacy-table td {
    width: auto;
    padding: 6px 4px;
}

body:not(.view--six) #history-table tbody td,
.legacy-table--prediction tbody td,
.legacy-table--trend tbody td {
    font-family: "Microsoft YaHei", "Open Sans", Arial, sans-serif;
}

body:not(.view--six) #history-table tbody td,
.legacy-table--trend tbody td {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 16px;
    line-height: 1.43rem;
}

.legacy-table--prediction tbody td {
    font-size: 14px;
}

.legacy-table__section th {
    padding: 6px;
    color: #5f5543;
    background: #ffefd4;
    letter-spacing: .12em;
}

.legacy-table__pending td {
    background: #fffdf4;
}

.legacy-table__interval td {
    background: #f5f6f8;
    font-weight: 700;
}

.legacy-table__number {
    font-weight: 700;
}

.forecast-values {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.forecast-values__plus {
    color: #777;
}

.legacy-text--red {
    color: #ff2b30;
}

.legacy-text--blue {
    color: #2265fa;
}

.forecast-result--hit {
    color: #00a651;
    font-size: 18px;
}

.forecast-result--miss,
.stats-missing--alert {
    color: #e60012;
    font-weight: 700;
}

.legacy-badge {
    min-width: 34px;
    padding: 2px 6px;
    display: inline-block;
    border-radius: 10px;
    color: #fff;
    line-height: 1.25;
}

.legacy-badge--red {
    background: #e60012;
}

.legacy-badge--blue {
    background: #00a0e9;
}

.six-hero__clock-card .is-waiting,
.six-hero__mobile-clock.is-waiting {
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0;
}

.footer {
    padding: 16px 12px 22px;
    box-shadow: 0 3px 5px rgb(0 0 0 / 12%);
    color: #8d929b;
    font-size: 12px;
    text-align: center;
}

.footer__status {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer__note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ececec;
}

.status--ok {
    color: #16845b;
}

[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .topbar {
        margin-top: 0;
        border-right: 0;
        border-left: 0;
        box-shadow: none;
    }

    .brand {
        min-height: 76px;
        padding: 12px 16px;
        justify-content: flex-start;
    }

    .brand__mark {
        width: 48px;
        height: 48px;
        font-size: 9px;
    }

    .brand__name {
        font-size: 20px;
    }

    .brand__note {
        margin-top: 3px;
        font-size: 11px;
    }

    .entry-nav a {
        height: 36px;
        font-size: 15px;
    }

    .layout {
        padding: 8px 7px 0;
        box-shadow: none;
    }

    .hero {
        padding: 6px;
    }

    .hero__identity {
        min-height: 60px;
    }

    .hero__emblem {
        width: 38px;
        height: 38px;
    }

    .balls {
        min-height: 62px;
        padding: 10px 7px;
        gap: 5px;
    }

    .ball {
        min-width: 34px;
        height: 34px;
        padding: 0 5px;
        font-size: 18px;
    }

    .operator {
        font-size: 14px;
    }

    .result-tag {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hero__clock {
        min-height: 61px;
        padding: 7px;
        gap: 7px;
    }

    .view--six .layout {
        padding: 32px 0 0;
    }

    .six-hero {
        min-height: 160px;
        padding: 16px;
        grid-template-columns: minmax(0, 1fr) 104px;
        grid-template-areas: "current logo";
        border-radius: 0;
    }

    .six-hero__logo {
        grid-area: logo;
        border-right: 0;
    }

    .six-hero__logo img {
        width: 96px;
        height: 96px;
    }

    .six-hero__current {
        grid-area: current;
        padding: 0;
        border-right: 0;
    }

    .six-hero__next,
    .six-hero__current-head,
    .six-balls {
        display: none;
    }

    .six-hero__mobile-title,
    .six-hero__mobile-meta {
        display: block;
    }

    .six-hero__mobile-title {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 9px;
    }

    .six-hero__mobile-title h2 {
        margin: 0;
        color: #3e3e3e;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
    }

    .six-hero__mobile-clock {
        min-width: 126px;
        padding: 2px 12px;
        overflow: hidden;
        border: 1px solid #ccc;
        border-radius: 16px;
        color: #3e3e3e;
        background: linear-gradient(90deg, #fff 0 20%, #fee2c3 20% 82%, #fff 82%);
        font: 700 13px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
        text-align: center;
        white-space: nowrap;
    }

    .six-hero__mobile-meta {
        color: #3e3e3e;
        font-size: 13px;
        line-height: 1.8;
    }

    .six-hero__mobile-meta div {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .six-hero__mobile-meta strong {
        color: #f27547;
        font-weight: 500;
    }

    .panel--six {
        min-height: 222px;
        margin-top: 88px;
        padding: 16px 12px 20px;
        border-radius: 12px;
    }

    .panel--six h3 {
        margin-bottom: 10px;
        font-size: 18px;
        font-weight: 700;
    }

    .panel--six h3::before {
        margin-right: 7px;
        font-size: 20px;
    }

    .six-history-modes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 9px;
    }

    .six-history-modes[hidden] {
        display: none;
    }

    .six-history-modes button {
        min-width: 0;
        min-height: 58px;
        padding: 6px 8px;
        border: 1px solid #ee7044;
        border-radius: 7px;
        color: #747474;
        background: #fff;
        font-size: 15px;
        line-height: 1.5;
        text-align: left;
    }

    .six-history-modes button[aria-selected="true"] {
        color: #fff;
        background: #ed7448;
    }

    .panel--six .table-wrap {
        overflow: visible;
    }

    .six-history-table,
    .six-history-table tbody {
        display: block;
    }

    .six-history-table thead {
        display: none;
    }

    .six-history-table .six-history-row {
        min-height: 58px;
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        padding: 7px 0;
        border-bottom: 1px solid #e9e9e9;
    }

    .six-history-table .six-history-row td {
        display: none;
        width: auto;
        padding: 2px 5px;
        overflow: visible;
        border: 0;
        text-align: left;
        text-overflow: clip;
    }

    .six-history-table .six-col-issue,
    .six-history-table .six-col-date {
        grid-column: 1;
        display: block;
    }

    .six-history-table .six-col-issue {
        grid-row: 1;
        color: #3e3e3e;
    }

    .six-history-table .six-col-date {
        grid-row: 2;
        color: #7c7c7c;
    }

    .panel--six[data-six-history-mode="numbers"] .six-col-numbers,
    .panel--six[data-six-history-mode="summary"] .six-col-sum,
    .panel--six[data-six-history-mode="summary"] .six-col-special,
    .panel--six[data-six-history-mode="wave"] .six-col-compound,
    .panel--six[data-six-history-mode="wave"] .six-col-wave {
        display: block;
    }

    .six-history-table .six-col-numbers {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .six-history-table .six-col-sum,
    .six-history-table .six-col-compound {
        grid-column: 2;
        grid-row: 1;
    }

    .six-history-table .six-col-special,
    .six-history-table .six-col-wave {
        grid-column: 2;
        grid-row: 2;
    }

    .six-history-table .six-col-sum::before {
        content: "\00603B\00548C\00FF1A";
    }

    .six-history-table .six-col-special::before {
        content: "\007279\007801\00FF1A";
    }

    .six-history-table .six-col-compound::before {
        content: "\007279\007801\005408\006570\00FF1A";
    }

    .six-history-table .six-col-wave::before {
        content: "\004E03\008272\006CE2\00FF1A";
        color: #7c7c7c;
    }

    .six-history-numbers {
        width: 100%;
        justify-content: flex-start;
        gap: 2px;
    }

    .six-number--compact {
        min-width: 22px;
        grid-template-rows: 23px 15px;
        font-size: 9px;
    }

    .six-number--compact .six-number__ball {
        width: 23px;
        height: 23px;
        font-size: 10px;
    }

    .six-history-plus {
        padding: 5px 0 0;
    }

    .history-more,
    .six-more {
        min-width: 184px;
        height: 36px;
        margin-top: 9px;
        font-size: 15px;
    }

    .clock__digit {
        min-width: 45px;
        padding-inline: 5px;
        font-size: 24px;
    }

    .clock__time {
        font-size: 12px;
    }

    .tabs {
        margin-top: 8px;
    }

    .tab {
        padding: 9px 3px;
        font-size: 12px;
    }

    .tab__icon {
        display: block;
        margin: 0 0 2px;
    }

    .panel {
        min-height: 260px;
        padding: 9px 5px 16px;
    }

    table {
        font-size: 12px;
    }

    th,
    td {
        padding: 6px 3px;
    }

    th:first-child,
    td:first-child {
        width: 26%;
    }

    th:nth-child(2),
    td:nth-child(2) {
        width: 33%;
    }

    th:nth-child(3),
    td:nth-child(3) {
        width: 41%;
    }

    .mini-balls {
        gap: 1px;
    }

    .mini-ball {
        min-width: 17px;
        height: 17px;
        padding: 0;
        font-size: 8px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 370px) {
    .hero__emblem {
        width: 34px;
        height: 34px;
    }

    .ball {
        min-width: 31px;
        height: 31px;
        font-size: 16px;
    }

    .mini-ball {
        min-width: 16px;
        height: 16px;
        padding: 0;
        font-size: 7px;
    }
}
