:root {
    --ledger-bg: #eef1f5;
    --ledger-card: #fff;
    --ledger-line: #e6eaf0;
    --ledger-soft: #f7f9fc;
    --ledger-text: #182235;
    --ledger-text-2: #4d5a6c;
    --ledger-muted: #8b95a6;
    --ledger-brand: #356cf3;
    --ledger-deep: #2d59cb;
    --ledger-tint: rgba(53, 108, 243, .09);
    --ledger-red: #e8425a;
    --ledger-blue: #1987d7;
    --ledger-green: #0daa70;
    --ledger-gold: #d99b22;
    --ledger-shadow: 0 2px 7px rgba(25, 39, 68, .06);
    --ledger-font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    --ledger-num: "DIN Alternate", "Arial Narrow", Arial, sans-serif;
}

.ledger-body {
    margin: 0;
    min-height: 100%;
    background: var(--ledger-bg);
    color: var(--ledger-text);
    font: 14px/1.55 var(--ledger-font);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

.ledger-body *, .ledger-body *::before, .ledger-body *::after { box-sizing: border-box; }
.ledger-body a { color: inherit; text-decoration: none; }
.ledger-body button, .ledger-body input { font: inherit; }
.ledger-body button { cursor: pointer; }
.ledger-body .card { background: var(--ledger-card); border: 1px solid #dfe4ec; border-radius: 8px; box-shadow: var(--ledger-shadow); }

.ledger-topbar { height: 66px; background: #fff; border-bottom: 2px solid #e3e8f0; }
.ledger-topbar-inner { display: flex; align-items: center; gap: 20px; width: min(1320px, 100%); height: 100%; margin: auto; padding: 0 24px; }
.ledger-logo { display: flex; align-items: center; min-width: 205px; }
.ledger-logo img { display: block; width: 210px; height: 45px; object-fit: contain; object-position: left center; }
.ledger-logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--ledger-brand), var(--ledger-deep)); box-shadow: 0 3px 10px rgba(53, 108, 243, .27); color: #fff; font-weight: 900; }
.ledger-logo b { display: block; font-size: 16px; line-height: 1.15; }
.ledger-logo small { display: block; margin-top: 2px; color: var(--ledger-muted); font-size: 8px; letter-spacing: 1.2px; }
.ledger-search { display: flex; align-items: center; gap: 8px; width: 350px; height: 36px; padding: 0 14px; border: 1px solid var(--ledger-line); border-radius: 20px; background: #f6f8fb; color: var(--ledger-muted); }
.ledger-search:focus-within { border-color: var(--ledger-brand); box-shadow: 0 0 0 3px var(--ledger-tint); background: #fff; }
.ledger-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ledger-text); font-size: 12px; }
.ledger-top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ledger-round-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ledger-line); border-radius: 50%; background: #fff; color: #59677a; }
.ledger-primary-button { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 18px; background: linear-gradient(135deg, var(--ledger-brand), var(--ledger-deep)); color: #fff !important; box-shadow: 0 3px 10px rgba(53, 108, 243, .25); font-size: 12px; }

.ledger-page { min-height: calc(100vh - 66px); }
.ledger-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr) 292px; gap: 14px; width: min(1320px, 100%); margin: auto; padding: 12px 24px 32px; }
.ledger-side { position: sticky; top: 14px; align-self: start; padding: 9px; }
.ledger-side a, .ledger-side button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ledger-text-2); text-align: left; font-size: 13px; }
.ledger-side a + a, .ledger-side a + button { margin-top: 2px; }
.ledger-side a:hover, .ledger-side button:hover { background: #f5f7fb; color: var(--ledger-text); }
.ledger-side .active { background: var(--ledger-tint); color: #294fbd; font-weight: 700; }
.side-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: #f0f3f8; color: #8792a3; }
.ledger-side .active .side-icon { background: linear-gradient(135deg, var(--ledger-brand), var(--ledger-deep)); color: #fff; }
.side-divider { height: 1px; margin: 10px 8px; background: var(--ledger-line); }
.side-note { margin: 8px; padding: 13px; border: 1px solid #e1e9fd; border-radius: 10px; background: linear-gradient(155deg, #f8faff, #eef3ff); color: #69768a; font-size: 10px; line-height: 1.7; }
.side-note b { display: block; margin-bottom: 4px; color: #2e55bd; font-size: 12px; }

.ledger-main { min-width: 0; }
.ledger-game-tabs { display: flex; gap: 4px; margin-bottom: 10px; padding: 5px; }
.ledger-game-tabs button { flex: 1; min-height: 35px; border: 0; border-radius: 9px; background: transparent; color: var(--ledger-muted); font-size: 12px; }
.ledger-game-tabs button.active { background: var(--ledger-tint); color: var(--ledger-deep); font-weight: 700; }
.ledger-hero { position: relative; display: none; overflow: hidden; border-radius: 8px; background: linear-gradient(105deg, #1d49aa 0%, #356cf3 100%); box-shadow: 0 4px 12px rgba(32, 69, 160, .18); color: #fff; }
.ledger-hero.active { display: block; }
.ledger-hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.04)); content: ""; }
.ledger-hero::after { display: none; }
.ledger-hero-inner { position: relative; z-index: 1; padding: 22px; }
.ledger-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ledger-hero-heading { min-width: 0; }
.ledger-live { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .78); font-size: 11px; }
.ledger-live b { display: flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 14px; background: rgba(10, 32, 87, .26); color: #fff; font-weight: 600; }
.ledger-live b i { width: 6px; height: 6px; border-radius: 50%; background: #75efb8; box-shadow: 0 0 0 3px rgba(117, 239, 184, .18); }
.ledger-hero h1 { display: flex; align-items: baseline; margin: 7px 0 0; font: 800 43px/1 var(--ledger-num); letter-spacing: .5px; white-space: nowrap; }
.ledger-hero h1 small { flex: none; margin-left: 6px; font: 500 13px/1 var(--ledger-font); opacity: .78; }
.ledger-date-chip { display: grid; min-width: 132px; max-width: 250px; flex: none; grid-template-columns: auto auto; gap: 1px 8px; padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px; background: rgba(255, 255, 255, .13); color: #fff; font: 500 10px/1.3 var(--ledger-num); text-align: center; }
.ledger-date-chip > span { grid-column: 1 / -1; letter-spacing: .2px; }
.ledger-date-chip > b { font-weight: 700; }
.ledger-date-chip > small { color: rgba(255,255,255,.78); font: 500 9px/1.3 var(--ledger-font); }
.ledger-balls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) 1px minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 21px; }
.ledger-balls .ball {
    display: grid;
    width: auto;
    height: auto;
    min-width: 0;
    flex: 0 1 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    justify-items: center;
    gap: 6px;
}
.ledger-balls .ball strong { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; background: var(--ball-color, #fff); box-shadow: 0 5px 13px var(--ball-shadow, rgba(0, 0, 0, .18)); color: #fff; font: 800 18px var(--ledger-num); }
.ledger-balls .ball small { color: rgba(255, 255, 255, .78); font-size: 9px; }
.ledger-balls .ball.red { --ball-color: var(--ledger-red); --ball-shadow: rgba(232, 66, 90, .34); }
.ledger-balls .ball.blue { --ball-color: var(--ledger-blue); --ball-shadow: rgba(25, 135, 215, .34); }
.ledger-balls .ball.green { --ball-color: var(--ledger-green); --ball-shadow: rgba(13, 170, 112, .34); }
.ledger-balls .ball.waiting { --ball-color: rgba(255, 255, 255, .2); --ball-shadow: rgba(0, 0, 0, .08); }
.ledger-balls .ball:nth-last-child(1) strong { background: #fff; color: var(--ledger-deep); box-shadow: 0 0 0 2px rgba(255, 255, 255, .45), 0 7px 16px rgba(18, 42, 110, .25); }
.ledger-balls .ball:nth-last-child(1) small { color: #ffe0a3; }
.ledger-ball-separator { align-self: stretch; width: 1px; min-height: 52px; margin: 2px 0 0; background: rgba(255, 255, 255, .25); }
.ledger-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 19px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .17); color: rgba(255, 255, 255, .72); font-size: 10px; }
.ledger-hero-foot b, .ledger-hero-foot a { color: #fff; }
.ledger-empty { padding: 50px 20px; text-align: center; }

.ledger-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.ledger-stat { display: flex; align-items: center; gap: 10px; padding: 13px; }
.ledger-stat > i { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--ledger-tint); color: var(--ledger-brand); font-style: normal; }
.ledger-stat:nth-child(2) > i { background: rgba(13, 170, 112, .1); color: var(--ledger-green); }
.ledger-stat:nth-child(3) > i { background: rgba(217, 155, 34, .12); color: #af7610; }
.ledger-stat:nth-child(4) > i { background: rgba(124, 92, 240, .1); color: #7658dc; }
.ledger-stat small { display: block; color: var(--ledger-muted); font-size: 10px; }
.ledger-stat b { display: block; margin-top: 2px; font: 800 15px var(--ledger-num); white-space: nowrap; }
.ledger-stat em { margin-left: 2px; color: var(--ledger-muted); font: 400 9px var(--ledger-font); font-style: normal; }

.ledger-section { margin-top: 12px; overflow: hidden; }
.ledger-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 53px; padding: 12px 16px; border-bottom: 1px solid #eff1f5; }
.ledger-section-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.ledger-section-head h2 i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--ledger-tint); color: var(--ledger-brand); font-style: normal; font-size: 11px; }
.ledger-section-head a, .ledger-section-head button, .ledger-section-head > span { border: 0; background: none; color: var(--ledger-muted); font-size: 10px; }
.ledger-gallery-grid { display: block; padding: 12px; columns: 3; column-gap: 10px; }
.ledger-gallery-card { display: inline-block; width: 100%; margin: 0 0 10px; overflow: hidden; break-inside: avoid; border: 1px solid var(--ledger-line); border-radius: 5px; background: #fff; transition: border-color .18s; }
.ledger-gallery-card:hover { border-color: #aebfe9; }
.ledger-gallery-card img { display: block; width: 100%; height: auto; object-fit: contain; background: #f5f6f8; }
.ledger-gallery-card h3 { margin: 8px 9px 2px; font-size: 11px; }
.ledger-gallery-card h3 span { float: right; color: #0b9562; font-size: 9px; }
.ledger-gallery-card p { margin: 0; padding: 0 9px 9px; color: var(--ledger-muted); font-size: 8px; }
.ledger-gallery-empty { padding: 60px 20px; color: var(--ledger-muted); text-align: center; }
.ledger-history-list { display: grid; gap: 9px; padding: 12px; background: #f7f9fc; }
.ledger-history-row { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 12px 18px; padding: 14px 16px 11px; border: 1px solid #e0e5ed; border-left: 4px solid var(--ledger-brand); border-radius: 7px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.ledger-history-row:hover { border-color: #bfcdf2; box-shadow: 0 5px 14px rgba(34, 60, 126, .08); }
.ledger-history-meta { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; }
.ledger-game-mark { display: grid; width: 38px; height: 38px; grid-row: 1 / span 2; place-items: center; border-radius: 7px; background: var(--ledger-tint); color: var(--ledger-deep); font-weight: 800; }
.ledger-history-meta b, .ledger-history-meta strong { display: inline; font-size: 12px; }
.ledger-history-meta b { margin-right: 5px; color: var(--ledger-text); }
.ledger-history-meta strong { color: var(--ledger-deep); }
.ledger-history-meta small { display: block; margin-top: 2px; color: var(--ledger-muted); font-size: 9px; }
.ledger-history-meta > em { grid-column: 1 / -1; width: max-content; padding: 3px 8px; border-radius: 10px; background: #ebfaf4; color: #087b53; font-size: 9px; font-style: normal; }
.ledger-history-meta > em i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--ledger-green); vertical-align: 1px; }
.ledger-mini-balls { display: flex; align-items: flex-start; justify-content: space-between; gap: 5px; min-width: 0; }
.ledger-mini-ball { display: grid; min-width: 28px; justify-items: center; }
.ledger-mini-ball > i { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--mini-color); box-shadow: 0 3px 7px color-mix(in srgb, var(--mini-color) 25%, transparent); color: #fff; font: 700 11px var(--ledger-num); font-style: normal; }
.ledger-mini-ball > i.red { --mini-color: var(--ledger-red); }
.ledger-mini-ball > i.blue { --mini-color: var(--ledger-blue); }
.ledger-mini-ball > i.green { --mini-color: var(--ledger-green); }
.ledger-mini-ball small { margin-top: 4px; color: #667286; font-size: 8px; white-space: nowrap; }
.ledger-mini-ball.special > i { outline: 2px solid #f0b543; outline-offset: 2px; }
.ledger-mini-ball.special small { color: #a26b00; font-weight: 700; }
.ledger-mini-separator { align-self: center; margin: 0 1px 17px; color: #a6afbd; font-weight: 800; }
.ledger-history-row > footer { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px dashed #e2e6ed; color: var(--ledger-muted); font-size: 9px; }
.ledger-history-row > footer strong { color: var(--ledger-deep); font-size: 10px; }
.ledger-history-row > footer strong i { font-style: normal; }

.ledger-rail { display: grid; gap: 13px; align-content: start; }
.ledger-about { padding: 16px; border-top: 3px solid var(--ledger-brand) !important; background: #fff !important; }
.ledger-about h2 { margin: 0 0 5px; font-size: 14px; }
.ledger-about p { margin: 0; color: var(--ledger-muted); font-size: 10px; line-height: 1.65; }
.ledger-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px; }
.ledger-quick a { text-align: center; color: var(--ledger-text-2); font-size: 9px; }
.ledger-quick i { display: grid; place-items: center; width: 39px; height: 39px; margin: 0 auto 6px; border-radius: 12px; background: var(--ledger-tint); color: var(--ledger-brand); font-style: normal; font-weight: 800; }
.ledger-quick a:nth-child(2) i { background: rgba(13, 170, 112, .1); color: var(--ledger-green); }
.ledger-quick a:nth-child(3) i { background: rgba(217, 155, 34, .12); color: #b17a11; }
.ledger-quick a:nth-child(4) i { background: rgba(124, 92, 240, .1); color: #7557dd; }
.ledger-feature { display: block; overflow: hidden; margin: 13px; border: 1px solid var(--ledger-line); border-radius: 5px; background: #f5f6f8; }
.ledger-feature img { display: block; width: 100%; height: auto; object-fit: contain; }
.ledger-feature span { display: block; padding: 10px 12px; border-top: 1px solid var(--ledger-line); background: #fff; color: var(--ledger-muted); font-size: 9px; }
.ledger-feature b { display: block; color: var(--ledger-text); font-size: 13px; }
.ledger-sync-list { padding: 4px 0; }
.ledger-sync-list > div { display: flex; gap: 10px; padding: 10px 15px; }
.ledger-sync-list > div + div { border-top: 1px solid #f0f2f5; }
.ledger-sync-list i { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: rgba(13, 170, 112, .1); color: var(--ledger-green); font-style: normal; }
.ledger-sync-list b { display: block; font-size: 11px; }
.ledger-sync-list small { display: block; margin-top: 2px; color: var(--ledger-muted); font-size: 9px; }
.ledger-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 14px 15px; }
.ledger-tags span, .ledger-tags a { padding: 5px 10px; border: 1px solid var(--ledger-line); border-radius: 14px; background: #f5f7fa; color: var(--ledger-text-2); font-size: 9px; }
.ledger-footer { padding: 12px 16px 26px; color: #7d8796; text-align: center; font-size: 10px; }

.ledger-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: min(1272px, calc(100% - 48px));
    min-height: 42px;
    margin: 12px auto 0;
    padding: 7px 12px;
    border: 1px solid #d9e0eb;
    border-left: 4px solid var(--ledger-brand);
    background: #fff;
}
.ledger-notice strong { display: flex; align-items: center; gap: 6px; color: var(--ledger-deep); font-size: 12px; white-space: nowrap; }
.ledger-notice strong svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ledger-notice p { margin: 0; overflow: hidden; color: #4f5b6d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ledger-notice > a { color: #7c8797; font-size: 11px; white-space: nowrap; }

.ledger-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    padding: 16px 12px 12px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--ledger-shadow);
}
.ledger-service-grid > a, .ledger-service-grid > button {
    display: flex;
    min-width: 0;
    min-height: 92px;
    padding: 5px 3px;
    border: 0;
    background: transparent;
    color: #263144;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
}
.ledger-service-grid > :is(a, button):hover { color: var(--ledger-deep); }
.ledger-service-grid i {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 9px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 3px 8px rgba(30, 48, 84, .18);
    transition: transform .18s ease;
}
.ledger-service-grid > :is(a, button):hover i { transform: translateY(-2px); }
.ledger-service-grid svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ledger-service-grid .orange { background: #f59a23; }
.ledger-service-grid .cyan { background: #08aee0; }
.ledger-service-grid .green { background: #17b987; }
.ledger-service-grid .purple { background: #a658e9; }
.ledger-service-grid .lime { background: #77bd4c; }
.ledger-service-grid .pink { background: #eb54b9; }
.ledger-service-grid .blue { background: #4c77ed; }
.ledger-service-grid .gold { background: #e9a14d; }

.ledger-mobile-nav { display: none; }

.demo-notice-modal {
    position: fixed;
    z-index: 2600;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(13, 23, 42, .58);
}
.demo-notice-modal.show { display: flex; }
.demo-notice-panel {
    position: relative;
    width: min(410px, 100%);
    padding: 31px 31px 26px;
    border-top: 5px solid var(--ledger-brand);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(5, 15, 35, .28);
    text-align: center;
}
.demo-notice-close { position: absolute; top: 9px; right: 11px; width: 38px; height: 38px; border: 0; background: transparent; color: #7e8998; font-size: 25px; }
.demo-notice-mark { display: grid; width: 50px; height: 50px; margin: 0 auto 11px; place-items: center; border-radius: 50%; background: var(--ledger-brand); color: #fff; font: 800 18px var(--ledger-num); }
.demo-notice-kicker { margin: 0 0 5px; color: var(--ledger-brand); font: 700 9px var(--ledger-num); letter-spacing: 2px; }
.demo-notice-panel h2 { margin: 0; color: var(--ledger-text); font-size: 21px; }
.demo-notice-panel > p:not(.demo-notice-kicker) { margin: 13px 0 12px; color: #4d596a; font-size: 14px; line-height: 1.8; }
.demo-version-note { margin: 0 0 18px; padding: 11px 13px; border: 1px solid #d9e4ff; border-left: 4px solid var(--ledger-brand); border-radius: 6px; background: #f5f8ff; text-align: left; }
.demo-version-note strong { display: inline-block; margin-bottom: 4px; color: var(--ledger-deep); font-size: 12px; }
.demo-version-note p { margin: 0; color: #526076; font-size: 11px; line-height: 1.7; }
.demo-notice-confirm { width: 100%; min-height: 43px; border: 0; border-radius: 5px; background: var(--ledger-brand); color: #fff; font-weight: 700; }
.demo-notice-panel button:focus-visible { outline: 3px solid rgba(53, 108, 243, .28); outline-offset: 2px; }

@media (max-width: 1100px) {
    .ledger-layout { grid-template-columns: 1fr; }
    .ledger-side { position: static; display: flex; overflow-x: auto; }
    .ledger-side a, .ledger-side button { flex: none; width: auto; }
    .side-note, .side-divider { display: none; }
    .ledger-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ledger-search { display: none; }
}

@media (max-width: 650px) {
    .ledger-topbar { height: 61px; }
    .ledger-topbar-inner { gap: 8px; padding: 0 12px; }
    .ledger-logo { min-width: 0; }
    .ledger-logo img { width: 154px; height: 39px; }
    .ledger-top-actions { gap: 6px; }
    .ledger-primary-button { width: 88px; padding: 0 10px; text-align: center; }
    .ledger-body { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
    .ledger-layout { gap: 10px; padding: 10px 10px 24px; }
    .ledger-notice { width: calc(100% - 20px); margin-top: 10px; padding: 7px 9px; }
    .ledger-notice p { font-size: 11px; }
    .ledger-notice > a { display: none; }
    .ledger-side { border-radius: 13px; scrollbar-width: none; }
    .ledger-side::-webkit-scrollbar { display: none; }
    .ledger-side a, .ledger-side button { gap: 7px; padding: 8px; }
    .side-icon { width: 24px; height: 24px; }
    .ledger-game-tabs { margin-bottom: 9px; }
    .ledger-hero-inner { padding: 17px 12px; }
    .ledger-hero-top { gap: 8px; }
    .ledger-live { gap: 6px; white-space: nowrap; }
    .ledger-live b { padding: 3px 7px; }
    .ledger-hero h1 { font-size: 38px; }
    .ledger-hero h1 small { margin-left: 5px; font-size: 12px; }
    .ledger-date-chip { min-width: 116px; max-width: 116px; padding: 5px 7px; gap: 0 5px; font-size: 9px; }
    .ledger-date-chip > small { font-size: 8px; }
    .ledger-balls { grid-template-columns: repeat(6, minmax(0, 1fr)) 1px minmax(0, 1fr); gap: 2px; margin-top: 18px; }
    .ledger-balls .ball strong { width: 36px; height: 36px; font-size: 14px; }
    .ledger-balls .ball small { font-size: 8px; }
    .ledger-ball-separator { min-height: 42px; margin-right: 0; margin-left: 0; }
    .ledger-hero-foot { gap: 7px; font-size: 8px; }
    .ledger-hero-foot > span:first-child { display: none; }
    .ledger-service-grid { margin-top: 10px; padding: 10px 4px 8px; }
    .ledger-service-grid > a, .ledger-service-grid > button { min-height: 82px; font-size: 11px; }
    .ledger-service-grid i { width: 43px; height: 43px; margin-bottom: 7px; }
    .ledger-service-grid svg { width: 24px; height: 24px; }
    .ledger-gallery-grid { padding: 9px; columns: 2; column-gap: 8px; }
    .ledger-gallery-card { margin-bottom: 8px; }
    .ledger-history-list { gap: 8px; padding: 9px; }
    .ledger-history-row { grid-template-columns: 1fr; gap: 11px; padding: 12px 11px 10px; }
    .ledger-history-meta { grid-template-columns: 34px minmax(0, 1fr) auto; }
    .ledger-game-mark { width: 34px; height: 34px; grid-row: auto; }
    .ledger-history-meta > em { grid-column: auto; grid-row: 1; }
    .ledger-mini-balls { gap: 2px; }
    .ledger-mini-ball { min-width: 0; }
    .ledger-mini-ball > i { width: 27px; height: 27px; font-size: 9px; }
    .ledger-mini-ball small { font-size: 7px; }
    .ledger-rail { grid-template-columns: 1fr; }
    .ledger-footer { padding-bottom: 12px; }
    .ledger-mobile-nav {
        position: fixed;
        z-index: 2000;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        min-height: 58px;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid #dce2eb;
        background: rgba(255,255,255,.97);
        box-shadow: 0 -3px 12px rgba(21, 35, 61, .08);
        backdrop-filter: blur(12px);
    }
    .ledger-mobile-nav a { display: flex; min-width: 0; min-height: 58px; color: #7a8595; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; }
    .ledger-mobile-nav svg { width: 21px; height: 21px; margin-bottom: 3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .ledger-mobile-nav a.active { color: var(--ledger-brand); font-weight: 700; }
    .demo-notice-panel { max-height: calc(100dvh - 24px); padding: 24px 18px 18px; overflow-y: auto; }
    .demo-notice-panel > p:not(.demo-notice-kicker) { margin-top: 10px; font-size: 12px; }
    .demo-version-note { margin-bottom: 14px; padding: 9px 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .ledger-body * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
