:root {
    --ink: #193d36;
    --muted: #778780;
    --green: #244e43;
    --green-dark: #173c32;
    --mint: #edf4ea;
    --lime: #e4eea1;
    --paper: #fafbf7;
    --line: #e7ece5;
    --white: #fff;
    --radius: 20px;
    --shadow: 0 6px 24px #243e3205;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--ink);
    font-synthesis: none
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    font-size: 14px;
    line-height: 1.6
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation
}

button {
    cursor: pointer
}

button:disabled {
    cursor: not-allowed;
    opacity: .5
}

button {
    color: inherit
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid #88aa4d;
    outline-offset: 4px
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #b5c990;
    outline-offset: 1px;
    border-color: #7e9d6f
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #dce5dc;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s
}

textarea {
    resize: vertical
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 18px
}

label input,
label select,
label textarea {
    display: block;
    margin-top: 7px;
    font-weight: 400
}

fieldset {
    min-width: 0;
    border: 0;
    padding: 0;
    margin: 0
}

fieldset:disabled {
    opacity: .7
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: -1px;
    font-weight: 600;
    margin-bottom: 9px
}

h2 {
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -.4px;
    font-weight: 600;
    margin-bottom: 14px
}

h3 {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 8px
}

p {
    color: var(--muted);
    margin-bottom: 16px
}

svg {
    flex-shrink: 0;
    vertical-align: middle
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 25px 0
}

.app-shell {
    min-height: 100vh
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 35px 23px 24px;
    z-index: 40;
    overflow-y: auto
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 48px
}

.brand-mark {
    height: 43px;
    width: 43px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    border-radius: 14px;
    font-size: 34px;
    position: relative;
    line-height: 1
}

.brand-mark span {
    position: absolute;
    color: var(--lime);
    right: 8px;
    bottom: 7px
}

.brand small {
    font-size: 8px;
    display: block;
    letter-spacing: 1.8px;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 600
}

.nav-caption {
    font-size: 10px;
    letter-spacing: 2px;
    color: #9da99f;
    font-weight: 600;
    margin: 0 14px 14px
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 15px;
    border-radius: 11px;
    color: #6c7c74;
    font-weight: 500;
    font-size: 13px
}

.sidebar nav a:hover {
    background: #f7f9f4
}

.sidebar nav a.active {
    color: #305438;
    background: #edf3e5;
    font-weight: 650
}

.sidebar nav a.active svg {
    color: #5d7b3c
}

.nav-tag {
    margin-left: auto;
    background: #dce8ca;
    font-size: 9px;
    border-radius: 5px;
    padding: 1px 5px;
    color: #647e43
}

.nav-divider {
    height: 1px;
    background: var(--line);
    margin: 17px 12px
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 40px
}

.small-note {
    display: flex;
    gap: 12px;
    color: #92a08f;
    font-size: 11px;
    line-height: 1.7;
    padding: 0 13px
}

.workspace-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 23px;
    border-top: 1px solid var(--line);
    padding: 19px 12px 0;
    font-size: 11px;
    color: #6b7b6b
}

.main-shell {
    margin-left: 248px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0
}

.topbar {
    height: 87px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 42px;
    gap: 16px;
    background: #ffffff90
}

.breadcrumb {
    font-size: 12px;
    color: #849183
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px
}

.preview-badge {
    font-size: 10px;
    color: #8d996f;
    display: flex;
    align-items: center;
    gap: 7px
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block
}

.avatar {
    display: grid;
    place-items: center;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--line);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e9eddd;
    color: #72815d;
    font-size: 12px
}

.help-link {
    color: #98a28e
}

main {
    padding: 37px 42px 42px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    min-width: 0
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px
}

.page-heading p {
    font-size: 13px;
    margin-bottom: 0
}

.date-label {
    font-size: 11px;
    color: #85917d;
    white-space: nowrap
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.section-title {
    margin: 30px 0 20px
}

.section-title h2 {
    margin: 4px 0 0
}

.eyebrow {
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 1.8px;
    color: #8a9877
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #667e40
}

.text-link:hover {
    text-decoration: underline
}

.text-button {
    background: none;
    border: 0;
    padding: 4px;
    color: #6a823e;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline
}

.home-top {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 24px
}

.balance-card {
    background: var(--green);
    border-radius: var(--radius);
    padding: 25px 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 254px
}

.balance-card:before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid #ffffff08;
    border-radius: 50%;
    right: -100px;
    top: -70px;
    box-shadow: 0 0 0 35px #ffffff03, 0 0 0 70px #ffffff03;
    pointer-events: none
}

.balance-card .section-row>span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #c0d0b9
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 17px;
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: 3px;
    margin: 18px 0 9px;
    overflow-wrap: anywhere
}

.balance-card p {
    font-size: 11px;
    color: #bccdbc
}

.balance-currency {
    font-size: 9px;
    margin-left: 10px;
    border: 1px solid #ffffff30;
    padding: 2px 5px;
    border-radius: 4px
}

.balance-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px
}

.balance-actions a {
    border-radius: 9px;
    padding: 10px 15px;
    background: #ffffff10;
    color: #f0f4e8;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    justify-content: center
}

.balance-actions a:first-child {
    background: var(--lime);
    color: #314c31
}

.icon-button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #859479;
    border-radius: 9px;
    flex-shrink: 0
}

.icon-button:hover {
    background: #edf1e5
}

.icon-button.light {
    color: #bbceac
}

.icon-button.light:hover {
    background: #ffffff15
}

.welcome-banner {
    background: #edf1df;
    border: 1px solid #e8eddb;
    border-radius: var(--radius);
    padding: 29px 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 254px
}

.welcome-banner>div:first-child {
    position: relative;
    z-index: 1;
    max-width: 65%
}

.welcome-banner .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: #89986d
}

.welcome-banner h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.8px;
    margin: 13px 0 12px
}

.welcome-banner p {
    font-size: 11px;
    color: #8c987b;
    margin-bottom: 12px
}

.banner-art {
    position: absolute;
    inset: 0 0 0 54%;
    pointer-events: none
}

.ball {
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: absolute;
    font-size: 28px;
    font-weight: 700;
    box-shadow: inset -8px -12px 15px #162d1b17, 6px 15px 20px #4e694c10
}

.ball-one {
    width: 94px;
    height: 94px;
    background: #fdfef4;
    color: #899c60;
    top: 44px;
    right: 43px;
    transform: rotate(-14deg)
}

.ball-two {
    width: 113px;
    height: 113px;
    background: #9cab76;
    color: #fff;
    top: 110px;
    right: 3px;
    transform: rotate(14deg)
}

.star {
    position: absolute;
    color: #bdc880;
    font-size: 43px;
    left: 8px;
    top: 120px
}

.tiny-star {
    position: absolute;
    right: 12px;
    top: 27px;
    color: #9eaf6f;
    font-size: 25px
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0
}

.quick-links>a {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px
}

.quick-links>a>span {
    background: #f2f5e9;
    border-radius: 10px;
    padding: 9px;
    color: #8c9f63
}

.quick-links>a>svg {
    margin-left: auto;
    color: #aab49c;
    width: 15px
}

.quick-links b {
    font-size: 12px;
    font-weight: 600;
    display: block
}

.quick-links small {
    font-size: 10px;
    display: block;
    color: #95a08c;
    margin-top: 3px
}

.quick-links a:hover {
    border-color: #c7d5af
}

.home-bottom {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 23px
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin:1.25rem;
}

.game-card {
    padding: 23px;
    background: #eff3e8;
    border: 1px solid #e2e9d8;
    border-radius: var(--radius);
    display: block;
    transition: transform .2s
}

.game-card:hover {
    transform: translateY(-3px)
}

.game-card.three {
    background: #f1eee5;
    border-color: #eae4d5
}

.game-label {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: #829568
}

.game-card.three .game-label {
    color: #a29476
}

.game-card .section-row>svg {
    color: #9cae84;
    width: 17px
}

.game-number {
    font-size: 68px;
    font-weight: 700;
    color: #93a870;
    line-height: 1.25;
    letter-spacing: -5px;
    margin: 9px 0
}

.game-number span {
    font-size: 54px;
    font-weight: 400
}

.three .game-number {
    color: #b4a17c
}

.game-card h3 {
    font-size: 14px;
    margin-bottom: 6px
}

.game-card p {
    font-size: 11px;
    color: #8f9b83;
    margin-bottom: 22px
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #83985b20;
    padding-top: 15px;
    font-size: 10px;
    color: #829364
}

.round-arrow {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    background: #ffffff70;
    border-radius: 50%
}

.live-panel {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    padding: 21px;
    display: flex;
    flex-direction: column;
    min-height: 250px
}

.live-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    flex: 1;
    padding: 26px 0
}

.live-center h3 {
    font-size: 12px;
    margin-bottom: 5px
}

.live-center p {
    font-size: 10px;
    margin-bottom: 0
}

.orbit {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #e6ebdb;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    box-shadow: 0 0 0 8px #fafbf7
}

.orbit span {
    width: 21px;
    height: 21px;
    border: 2px solid #e8eecf;
    border-top-color: #a8bb75;
    border-radius: 50%;
    animation: spin 1.8s linear infinite
}

.live-footer {
    font-size: 9px;
    color: #a0ab94;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 15px;
    gap: 6px
}

.live-footer>span:last-child {
    display: flex;
    gap: 6px
}

.gentle-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f4e8;
    border-radius: 12px;
    padding: 15px 19px;
    margin-top: 27px;
    color: #94a17d;
    font-size: 10px
}

.gentle-note b {
    font-weight: 600;
    color: #7f8f69
}

.page-footer {
    display: flex;
    justify-content: space-between;
    margin: 0 42px;
    padding: 20px 0 26px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    color: #a0aa97
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
    margin-bottom: 24px
}

.panel-heading {
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px
}

.panel-heading h2 {
    margin: 0;
    font-size: 16px
}

.panel>.tabs {
    padding: 16px 22px 0
}

.panel>.text-link {
    margin: 16px 24px
}

.panel>h2 {
    margin: 24px
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: start
}

.form-panel,
.info-panel {
    padding: 28px
}

.form-panel h2 {
    margin: 0 0 24px
}

.info-panel {
    background: #f0f4e8;
    padding: 32px
}

.info-panel h2 {
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.25;
    margin: 25px 0 17px
}

.info-panel p {
    font-size: 13px;
    color: #8a967c
}

.info-icon {
    display: inline-flex;
    border-radius: 15px;
    background: #fff;
    padding: 16px;
    color: #83985f
}

.step-label {
    display: flex;
    gap: 11px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    margin: 5px 0 22px
}

.step-label:not(:first-child) {
    margin-top: 28px
}

.step-label span {
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    background: #edf3e4;
    color: #809660;
    font-size: 10px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px
}

.field-hint {
    font-size: 11px;
    color: #8b9885;
    line-height: 1.65;
    margin: 12px 0 20px
}

.presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: -5px 0 23px
}

.presets button {
    border: 1px solid var(--line);
    background: #f9faf6;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 11px;
    flex: 1;
    white-space: nowrap
}

.presets button.selected {
    background: #e7efd5;
    border-color: #b9cd8c;
    color: #617e3a
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 10px;
    min-height: 44px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5
}

.button.primary {
    background: var(--green);
    color: #fff
}

.button.primary:hover:not(:disabled) {
    background: var(--green-dark)
}

.button.secondary {
    background: #fff;
    border-color: #dfe7d7;
    color: #61754e
}

.button.secondary:hover:not(:disabled) {
    background: #f0f4e8
}

.button.danger {
    background: #faece7;
    color: #a45641;
    border-color: #efcfc4
}

.button.small {
    padding: 7px 12px;
    min-height: 34px;
    font-size: 11px
}

.full {
    width: 100%
}

.form-panel form>.button,
.form-panel fieldset>.button {
    margin-right: 6px;
    margin-bottom: 6px
}

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 22px 0
}

.toolbar .tabs {
    margin: 0
}

.toolbar .text-link {
    margin-left: auto
}

.notice {
    padding: 14px 17px;
    border: 1px solid #eadcc5;
    background: #fbf7ed;
    color: #92774b;
    font-size: 12px;
    border-radius: 11px;
    margin: 15px 0;
    overflow-wrap: anywhere
}

.notice.success {
    background: #eef6e6;
    color: #638047;
    border-color: #d9e7c8
}

.notice p {
    color: inherit;
    margin: 8px 0
}

.account-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
    background: #f2f6eb;
    padding: 17px;
    margin: 12px 0 24px
}

.account-preview b,
.account-preview span {
    display: block;
    font-size: 12px
}

.account-preview span {
    font-size: 11px;
    color: #8b9c79
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px
}

.stats-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.stat-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 23px
}

.stat-card>span {
    font-size: 11px;
    color: #8a987f;
    display: block
}

.stat-card strong {
    font-size: 26px;
    font-weight: 600;
    display: block;
    line-height: 1.35;
    margin: 14px 0 10px;
    letter-spacing: -.7px;
    overflow-wrap: anywhere
}

.stat-card small {
    font-size: 10px;
    color: #9ca78f
}

.stat-card.accent {
    background: var(--green);
    color: #fff
}

.stat-card.accent>span,
.stat-card.accent small {
    color: #bdcdb1
}

.tabs {
    display: flex;
    gap: 7px;
    margin-bottom: 23px;
    flex-wrap: wrap
}

.tabs button {
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8c9983;
    padding: 10px 17px;
    font-size: 12px;
    font-weight: 500
}

.tabs button.active {
    background: #e8efdc;
    color: #5e783e
}

.tabs button:hover {
    background: #f0f4e7
}

.table-scroll {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #d1ddbe transparent
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: 12px
}

thead {
    background: #f8faf4
}

th {
    color: #94a180;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    white-space: nowrap;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

td {
    padding: 17px 22px;
    border-bottom: 1px solid #eef2e8;
    color: #65765b;
    max-width: 320px;
    overflow-wrap: anywhere;
    min-width: 90px
}

tbody tr:last-child td {
    border-bottom: 0
}

tbody tr:hover {
    background: #fcfdf9
}

.money {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 550;
    color: #3c5741
}

.status {
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 9px;
    white-space: nowrap;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.status.green {
    color: #65864e;
    background: #eef5e7
}

.status.red {
    color: #b17d68;
    background: #fbefe9
}

.status.amber {
    color: #aa9557;
    background: #f9f4df
}

.status.muted {
    color: #9fab8c;
    background: #f4f7ed
}

.number-chip {
    font-size: 15px;
    font-weight: 650;
    background: #edf3e3;
    color: #6d874b;
    letter-spacing: 2px;
    border-radius: 8px;
    padding: 5px 10px;
    display: inline-block;
    font-variant-numeric: tabular-nums
}

.number-chip.large {
    font-size: 40px;
    padding: 17px 24px
}

.pager {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 18px 23px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: #8c9a7b
}

.subtle {
    font-size: 11px;
    color: #93a086
}

.filter-bar {
    padding: 0 24px 20px;
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap
}

.filter-bar label {
    flex: 1;
    min-width: 160px;
    margin: 0
}

.filter-bar .button {
    margin-bottom: 0
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap
}

.payment-review-actions {
    flex-wrap: wrap;
    white-space: normal;
    min-width: 190px;
    gap: 10px;
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center
}

.empty-icon {
    display: inline-flex;
    background: #f0f5e6;
    color: #a3b785;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 19px
}

.empty-state h3 {
    font-size: 15px;
    color: #70855d;
    font-weight: 500
}

.empty-state p {
    font-size: 12px;
    max-width: 340px;
    color: #99a78b
}

.skeleton-list {
    padding: 24px
}

.skeleton {
    height: 40px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f1f4ec 25%, #f9faf6 50%, #f1f4ec 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite
}

.skeleton-list .skeleton:nth-child(2) {
    width: 80%
}

.skeleton-list .skeleton:nth-child(3) {
    width: 60%
}

.detail-hero {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px
}

.detail-hero strong {
    font-size: 28px
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    padding: 0 30px 25px
}

.detail-grid dt {
    font-size: 10px;
    text-transform: uppercase;
    color: #95a180;
    letter-spacing: .7px
}

.detail-grid dd {
    font-size: 13px;
    margin: 7px 0 0;
    color: #547046;
    overflow-wrap: anywhere
}

.form-panel .detail-grid {
    padding: 0
}

.narrow {
    max-width: 640px
}

.auth-card {
    max-width: 455px;
    margin: 35px auto 60px;
    padding: 35px
}

.auth-card h2 {
    font-size: 26px;
    margin-top: 20px
}

.auth-symbol {
    display: inline-flex;
    background: #edf4df;
    color: #7c9858;
    padding: 15px;
    border-radius: 14px
}

.auth-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 10px;
    color: #809764;
    margin-top: 24px
}

.auth-links a:hover {
    text-decoration: underline
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px
}

.contact-card {
    padding: 27px
}

.contact-card h2 {
    margin-top: 20px
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 12px
}

.check-label input {
    width: 17px;
    height: 17px;
    min-height: 0;
    flex-shrink: 0;
    margin: 2px 0 0;
    accent-color: var(--green)
}

.play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr);
    gap: 26px;
    align-items: start
}

.number-input {
    font-size: 36px;
    letter-spacing: 8px;
    text-align: center;
    font-weight: 500;
    background: #fafcf6;
    border-color: #dce7c8
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0 25px
}

.keypad button {
    border: 1px solid #e5ecd9;
    border-radius: 11px;
    background: #f8faf4;
    min-height: 48px;
    font-size: 19px
}

.keypad button:hover {
    background: #eaf1db
}

.keypad .key-subtle {
    font-size: 11px;
    color: #8d9b76
}

.keypad .key-accent {
    font-size: 12px;
    background: #e3edcb;
    color: #587637
}

.cart-panel {
    padding-bottom: 22px;
    position: sticky;
    top: 22px
}

.cart-panel>.button,
.cart-panel>.notice,
.cart-panel>.field-hint {
    margin: 16px 24px;
    width: calc(100% - 48px)
}

.count-badge {
    padding: 3px 10px;
    border-radius: 7px;
    background: #f0f4e8;
    color: #849961;
    font-size: 11px
}

.cart-list {
    max-height: 440px;
    overflow-y: auto;
    padding: 0 24px
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line)
}

.cart-row>.money {
    margin-left: auto
}

.cart-summary {
    background: #f8faf3;
    margin: 20px 24px 0;
    padding: 17px;
    border-radius: 12px
}

.cart-summary>div {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #93a27c
}

.cart-summary>div+div {
    padding-top: 15px;
    margin-top: 12px;
    border-top: 1px dashed #dde6ca
}

.cart-summary strong {
    font-size: 20px;
    color: #496738
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px
}

.draw-results {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding: 22px 25px 30px
}

.draw-results>div {
    flex: 1;
    text-align: center
}

.draw-results>div+div {
    border-left: 1px solid var(--line)
}

.result-number {
    display: block;
    font-size: 42px;
    letter-spacing: 5px;
    font-weight: 500;
    color: #829f59;
    line-height: 1.4;
    margin: 12px 0
}

.confirmation {
    border-color: #bdcc9d;
    margin-top: 24px
}

details {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 20px
}

summary {
    cursor: pointer;
    font-size: 12px;
    color: #a28a6a
}

details[open] summary {
    margin-bottom: 18px
}

.mobile-menu,
.bottom-nav,
.menu-overlay {
    display: none
}

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

.skip-link {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px;
    background: white
}

.skip-link:focus {
    top: 12px
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fbf2e4;
    color: #7e6543;
    padding: 15px 24px;
    border-top: 1px solid #e7d4b6;
    font-size: 13px
}

#blazor-error-ui .reload {
    text-decoration: underline;
    margin-left: 16px
}

.boot-screen {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px
}

.boot-screen strong {
    font-size: 25px
}

.loading-progress {
    height: 50px;
    width: 50px;
    border: 3px solid #e5ecd9;
    border-top-color: #789a53;
    border-radius: 50%;
    animation: spin 1.3s linear infinite
}

.boot-screen p {
    font-size: 12px;
    color: #93a080
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes shimmer {
    to {
        background-position: -200% 0
    }
}

@media(min-width:1600px) {
    main {
        padding-left: 55px;
        padding-right: 55px
    }

    .topbar {
        padding-left: 55px;
        padding-right: 55px
    }

    .home-top {
        grid-template-columns: 1fr 1.4fr
    }
}

@media(max-width:1200px) {
    .sidebar {
        width: 218px;
        padding-left: 16px;
        padding-right: 16px
    }

    .main-shell {
        margin-left: 218px
    }

    main {
        padding: 30px 27px
    }

    .topbar {
        padding: 0 27px
    }

    .home-top {
        grid-template-columns: 1fr 1fr
    }

    .welcome-banner {
        padding: 25px
    }

    .welcome-banner h2 {
        font-size: 26px
    }

    .banner-art {
        opacity: .6
    }

    .home-bottom {
        grid-template-columns: 1fr
    }

    .live-panel {
        min-height: 200px
    }

    .live-center {
        padding: 25px 0
    }

    .quick-links {
        gap: 12px
    }

    .quick-links>a {
        padding: 14px;
        gap: 9px
    }

    .quick-links small {
        font-size: 9px
    }

    .quick-links>a>svg {
        display: none
    }

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

    .form-layout {
        grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr)
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .page-footer {
        margin: 0 27px
    }
}

@media(max-width:900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s;
        width: 250px;
        box-shadow: 15px 0 50px #10271912
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .main-shell {
        margin-left: 0
    }

    .menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: #163d3260;
        border: 0;
        z-index: 35
    }

    .mobile-menu {
        display: inline-flex
    }

    .topbar {
        height: 70px;
        justify-content: flex-start
    }

    .topbar-right {
        margin-left: auto;
        gap: 17px
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 30;
        background: #fffffff5;
        border-top: 1px solid var(--line);
        display: flex;
        justify-content: space-around;
        padding: 10px 8px max(10px, env(safe-area-inset-bottom))
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        font-size: 9px;
        color: #9aa78a;
        min-width: 45px
    }

    .bottom-nav a.active {
        color: #537338
    }

    .page-footer {
        padding-bottom: 95px
    }

    .admin-shell .page-footer {
        padding-bottom: 25px
    }

    .form-layout {
        grid-template-columns: minmax(0, 1.3fr) minmax(250px, 1fr)
    }

    .admin-shell .form-layout {
        grid-template-columns: 1fr
    }

    .play-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr)
    }

    .cart-panel {
        position: static
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:640px) {
    main {
        padding: 25px 18px 30px
    }

    .topbar {
        padding: 0 17px;
        height: 64px
    }

    .breadcrumb {
        display: none
    }

    .topbar-right {
        gap: 17px
    }

    .page-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        margin-bottom: 23px;
        gap: 12px
    }

    .page-heading h1 {
        font-size: 26px
    }

    .page-heading p {
        font-size: 12px
    }

    .date-label {
        font-size: 10px
    }

    .home-top {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .balance-card {
        min-height: 234px;
        padding: 23px
    }

    .balance-amount {
        font-size: 30px
    }

    .welcome-banner {
        min-height: 210px;
        padding: 23px
    }

    .welcome-banner h2 {
        font-size: 29px
    }

    .banner-art {
        opacity: 1
    }

    .ball-one {
        right: 45px;
        top: 24px;
        width: 82px;
        height: 82px
    }

    .ball-two {
        top: 88px;
        right: 12px;
        width: 99px;
        height: 99px
    }

    .star {
        top: 100px
    }

    .quick-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
        margin: 18px 0
    }

    .quick-links>a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 5px;
        gap: 9px;
        border-radius: 12px
    }

    .quick-links>a>span {
        padding: 8px
    }

    .quick-links b {
        font-size: 10px
    }

    .quick-links small {
        display: none
    }

    .game-grid {
        gap: 12px
    }

    .game-card {
        padding: 18px 16px
    }

    .game-label {
        font-size: 7px;
        letter-spacing: .8px
    }

    .game-number {
        font-size: 58px
    }

    .game-number span {
        font-size: 46px
    }

    .game-card h3 {
        font-size: 13px
    }

    .game-card p {
        font-size: 10px;
        min-height: 32px
    }

    .game-footer {
        font-size: 9px;
        gap: 5px
    }

    .section-title {
        margin-top: 24px
    }

    .section-title h2 {
        font-size: 18px
    }

    .section-title .text-link {
        font-size: 10px
    }

    .live-panel {
        padding: 20px
    }

    .gentle-note {
        font-size: 9px;
        padding: 13px
    }

    .page-footer {
        margin: 0 18px;
        font-size: 9px
    }

    .form-layout,
    .play-layout {
        grid-template-columns: 1fr;
        gap: 0
    }

    .form-panel,
    .info-panel {
        padding: 23px
    }

    .info-panel {
        margin-top: 0
    }

    .form-panel h2 {
        font-size: 18px
    }

    .stats-grid {
        gap: 12px
    }

    .stat-card {
        padding: 19px 16px;
        border-radius: 15px
    }

    .stat-card>span {
        font-size: 10px
    }

    .stat-card strong {
        font-size: 21px
    }

    .stat-card small {
        font-size: 9px
    }

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

    .toolbar {
        gap: 9px
    }

    .toolbar .text-link {
        margin-left: 0
    }

    .toolbar .button {
        font-size: 11px;
        padding: 9px 13px
    }

    .tabs {
        gap: 3px
    }

    .tabs button {
        padding: 9px 12px;
        font-size: 11px
    }

    .panel>.tabs {
        padding-left: 13px;
        padding-right: 13px
    }

    .panel-heading {
        padding: 19px
    }

    .panel-heading h2 {
        font-size: 15px
    }

    .panel-heading .subtle {
        max-width: 100px;
        text-align: right;
        font-size: 10px
    }

    th,
    td {
        padding: 13px 16px
    }

    th {
        font-size: 9px
    }

    td {
        font-size: 11px;
        min-width: 82px
    }

    .table-scroll {
        border-radius: 0 0 15px 15px
    }

    .filter-bar {
        padding: 0 19px 20px;
        gap: 10px
    }

    .filter-bar label {
        min-width: 120px
    }

    .pager {
        justify-content: center;
        padding: 16px 12px;
        gap: 12px;
        font-size: 10px
    }

    .empty-state {
        padding: 38px 19px
    }

    .detail-grid {
        padding: 0 22px 22px;
        gap: 20px
    }

    .detail-hero {
        padding: 23px
    }

    .auth-card {
        padding: 25px;
        margin: 20px auto 35px
    }

    .auth-links {
        gap: 14px
    }

    .card-grid,
    .result-grid {
        grid-template-columns: 1fr;
        gap: 0
    }

    .cart-panel {
        position: static
    }

    .form-grid {
        gap: 12px
    }

    .keypad button {
        min-height: 51px
    }

    .result-number {
        font-size: 38px
    }

    .draw-results {
        padding: 20px
    }

    .form-panel .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .contact-card {
        padding: 24px
    }

    .notice {
        font-size: 11px
    }

    .confirmation .toolbar {
        gap: 8px
    }
}

@media(max-width:360px) {
    .game-grid {
        grid-template-columns: 1fr
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0
    }

    .stats-grid {
        grid-template-columns: 1fr
    }

    .welcome-banner>div:first-child {
        max-width: 75%
    }

    .banner-art {
        opacity: .5
    }

    .balance-actions {
        gap: 7px
    }

    .balance-actions a {
        padding: 10px;
        font-size: 10px
    }

    .topbar-right {
        gap: 12px
    }

    .page-footer>span:last-child {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Readable controls and contained layouts from small phones to wide desktops. */
.main-shell,
main,
.home-top>*,
.home-bottom>* {
    min-width: 0;
}

main {
    max-width: 1560px;
    margin-inline: auto;
}

.drawer-close {
    display: none;
}

.live-panel h2 {
    margin: 0;
    font-size: 16px;
}

.latest-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.latest-result small {
    display: block;
    color: #627467;
    font-size: 12px;
    margin-top: 4px;
}

.live-panel .live-footer {
    margin-top: auto;
    font-size: 12px;
    padding-top: 18px;
}

.checkout-receipt {
    margin: 20px 24px;
    padding: 20px;
    border-radius: 12px;
    background: #edf4e8;
    border: 1px solid #cbdcc0;
}

.checkout-receipt>svg {
    margin-bottom: 12px;
}

.checkout-receipt h3 {
    font-size: 16px;
}

.checkout-receipt p {
    font-size: 13px;
    color: #405a44;
}

.field-hint,
.subtle,
.date-label {
    color: #627467;
}

.page-heading p,
.empty-state p,
.info-panel p {
    color: #607266;
}

label {
    overflow-wrap: anywhere;
}

.form-grid>*,
.filter-bar>*,
.detail-grid>* {
    min-width: 0;
}

.tabs button,
.button.small,
.icon-button {
    min-height: 44px;
}

.icon-button {
    min-width: 44px;
}

.table-scroll:focus-visible {
    outline: 3px solid #789a53;
    outline-offset: -3px;
}

.cart-list {
    overscroll-behavior: contain;
}

.filter-bar .filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .sidebar {
        visibility: hidden;
    }

    .sidebar.open {
        visibility: visible;
    }

    .drawer-close {
        display: inline-flex;
        align-self: flex-end;
        margin-top: -18px;
        margin-right: -8px;
    }

    body:has(.sidebar.open) {
        overflow: hidden;
    }

    .bottom-nav a {
        min-height: 44px;
        justify-content: center;
        font-size: 11px;
        color: #607266;
    }

    .bottom-nav {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .sidebar nav a {
        font-size: 14px;
    }
}

@media (max-width: 640px) {

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .field-hint,
    .subtle,
    .notice,
    .button,
    .tabs button {
        font-size: 13px;
    }

    .game-card p,
    .game-footer,
    .quick-links b {
        font-size: 12px;
    }

    .quick-links>a {
        min-height: 100px;
    }

    .balance-amount {
        flex-wrap: wrap;
        overflow-wrap: anywhere;
    }

    .table-scroll {
        padding: 0 16px 16px;
    }

    .table-scroll table,
    .table-scroll tbody {
        display: block;
        width: 100%;
    }

    .table-scroll thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .table-scroll tbody tr {
        display: block;
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-top: 12px;
        padding: 10px 14px;
        background: white;
    }

    .table-scroll td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        max-width: none;
        min-width: 0;
        width: 100%;
        padding: 9px 0;
        font-size: 13px;
        text-align: right;
    }

    .table-scroll td::before {
        content: attr(data-label);
        color: #627467;
        font-size: 12px;
        text-align: left;
        flex: 0 0 36%;
    }

    .table-scroll td:last-child {
        border-bottom: 0;
    }

    .table-scroll td:not([data-label]) {
        justify-content: flex-end;
    }

    .table-scroll td:not([data-label])::before {
        display: none;
    }

    .table-scroll td:empty {
        display: none;
    }

    .status {
        font-size: 11px;
    }

    .row-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        white-space: normal;
    }

    .filter-bar label {
        flex-basis: 40%;
    }

    .panel-heading {
        flex-wrap: wrap;
    }

    .detail-grid,
    .form-panel .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-summary>div {
        flex-wrap: wrap;
        font-size: 13px;
    }

    .result-number {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {

    .form-grid,
    .detail-grid,
    .form-panel .detail-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar label {
        flex-basis: 100%;
    }

    .presets button {
        flex-basis: 40%;
    }

    .topbar-right {
        gap: 8px;
    }

    .preview-badge {
        font-size: 10px;
    }
}

.payment-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #244e43;
    text-align: left;
}

.payment-brand img {
    width: 60px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

.provider-monogram {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e8effa;
    color: #1f559e;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.provider-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.provider-picker legend {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.provider-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    min-width: 0;
    background: white;
}

.provider-choice.selected {
    background: #f0f5e9;
    border-color: #72965e;
    box-shadow: 0 0 0 1px #72965e;
}

.provider-choice input {
    width: 17px;
    height: 17px;
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: #244e43;
    flex-shrink: 0;
}

.provider-choice .payment-brand {
    flex: 1;
    flex-wrap: wrap;
    gap: 7px;
}

.provider-choice:focus-within {
    outline: 3px solid #88aa4d;
    outline-offset: 3px;
}

.provider-picker:disabled .provider-choice {
    cursor: default;
}

.payment-detail-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    background: #f0f5e9;
}

.payment-detail-header strong {
    display: block;
    font-size: 32px;
    font-variant-numeric: tabular-nums;
}

.payment-detail-header small {
    color: #627467;
}

.payment-detail-body {
    padding: 28px;
}

.payment-detail-body .detail-grid {
    padding: 0;
    margin: 24px 0 0;
}

@media(max-width:380px) {
    .provider-picker {
        grid-template-columns: 1fr;
    }

    .payment-detail-header,
    .payment-detail-body {
        padding: 20px;
    }

    .payment-detail-header strong {
        font-size: 26px;
    }
}
