﻿:root {
    --green: #0d6b43;
    --green-dark: #084c31;
    --green-soft: #e9f5ef;
    --ink: #17211c;
    --muted: #69756e;
    --line: #dfe7e2;
    --paper: #ffffff;
    --canvas: #f2f5f3;
    --accent: #f0c64a;
    --live: #d94545;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background: #dfe5e1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 0.2564102564vw;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--canvas);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    overscroll-behavior-y: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--canvas);
    display: flex;
    flex-direction: column;
}

.topbar {
    flex: 0 0 auto;
    min-height: 86rem;
    padding: calc(13rem + env(safe-area-inset-top)) 14rem 13rem;
    background: var(--green);
    color: var(--paper);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10rem;
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10rem;
}

.brand-mark {
    flex: 0 0 38rem;
    width: 38rem;
    height: 38rem;
    border: 2rem solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 20rem;
    font-weight: 900;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    overflow: hidden;
    font-size: 19rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand p {
    margin-top: 4rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10rem;
}

.online-dot {
    display: inline-block;
    width: 6rem;
    height: 6rem;
    margin-right: 4rem;
    border-radius: 50%;
    background: var(--accent);
}

.wallet {
    flex: 0 0 auto;
    min-width: 91rem;
    border: 1rem solid rgba(255, 255, 255, 0.28);
    border-radius: 6rem;
    background: rgba(0, 0, 0, 0.13);
    color: var(--paper);
    padding: 7rem 9rem;
    text-align: right;
}

.wallet span,
.wallet strong {
    display: block;
}

.wallet span {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 9rem;
}

.wallet strong {
    font-size: 13rem;
}

.quick-bar {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--green-dark);
}

.quick-item {
    min-width: 0;
    min-height: 56rem;
    border: 0;
    border-bottom: 3rem solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.quick-item strong {
    color: var(--paper);
    font-size: 14rem;
}

.quick-item span {
    font-size: 10rem;
}

.quick-item.active {
    border-bottom-color: var(--accent);
    color: var(--paper);
}

.sports-tabs {
    flex: 0 0 auto;
    padding: 11rem 10rem;
    border-bottom: 1rem solid var(--line);
    background: var(--paper);
    display: flex;
    gap: 7rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.sports-tabs::-webkit-scrollbar {
    display: none;
}

.sport-tab {
    flex: 0 0 auto;
    min-height: 36rem;
    border: 1rem solid var(--line);
    border-radius: 6rem;
    background: var(--paper);
    color: var(--muted);
    padding: 0 11rem;
    font-size: 12rem;
    font-weight: 700;
}

.sport-tab span {
    margin-left: 4rem;
    color: var(--green);
}

.sport-tab.active {
    border-color: var(--green);
    background: var(--green);
    color: var(--paper);
}

.sport-tab.active span {
    color: var(--accent);
}

main {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 14rem;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.section {
    padding: 17rem 10rem 0;
}

.section-title {
    margin-bottom: 10rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.section-title p,
.bet-slip-header p {
    margin-bottom: 3rem;
    color: var(--green);
    font-size: 9rem;
    font-weight: 900;
}

.section-title h2,
.bet-slip-header h2 {
    font-size: 17rem;
}

.section-title button {
    min-height: 32rem;
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 11rem;
    font-weight: 800;
}

.match-card {
    margin-bottom: 9rem;
    border: 1rem solid var(--line);
    border-radius: 7rem;
    background: var(--paper);
    overflow: hidden;
}

.match-meta {
    min-height: 39rem;
    padding: 7rem 9rem;
    border-bottom: 1rem solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr 28rem;
    align-items: center;
    gap: 7rem;
    color: var(--muted);
    font-size: 10rem;
}

.live-tag,
.time-tag {
    border-radius: 4rem;
    padding: 5rem 6rem;
    font-weight: 900;
}

.live-tag {
    background: #fceaea;
    color: var(--live);
}

.time-tag {
    background: var(--green-soft);
    color: var(--green);
}

.match-meta button {
    width: 28rem;
    height: 28rem;
    border: 1rem solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
    font-weight: 800;
}

.team-row {
    min-height: 30rem;
    padding: 5rem 11rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10rem;
    font-size: 13rem;
}

.team-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-row span {
    color: var(--green);
    font-size: 15rem;
    font-weight: 900;
}

.market-label {
    padding: 8rem 9rem 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 9rem;
}

.odds {
    padding: 0 8rem 9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5rem;
}

.odds button {
    min-width: 0;
    min-height: 46rem;
    border: 1rem solid var(--line);
    border-radius: 5rem;
    background: #f7faf8;
    color: var(--muted);
    padding: 5rem 7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.odds button:active {
    border-color: var(--green);
    background: var(--green-soft);
}

.odds span {
    overflow: hidden;
    font-size: 9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.odds strong {
    color: var(--green);
    font-size: 13rem;
}

.event-list {
    border: 1rem solid var(--line);
    border-radius: 7rem;
    background: var(--paper);
    overflow: hidden;
}

.event-list button {
    width: 100%;
    min-height: 54rem;
    padding: 8rem 11rem;
    border: 0;
    border-bottom: 1rem solid var(--line);
    background: var(--paper);
    color: var(--ink);
    display: grid;
    grid-template-columns: 82rem 1fr 28rem;
    align-items: center;
    gap: 8rem;
    text-align: left;
}

.event-list button:last-child {
    border-bottom: 0;
}

.event-list strong {
    font-size: 12rem;
}

.event-list span {
    color: var(--muted);
    font-size: 10rem;
}

.event-list b {
    width: 27rem;
    height: 27rem;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 10rem;
}

.bottom-nav {
    position: relative;
    z-index: 10;
    flex: 0 0 64rem;
    width: 100%;
    min-height: 64rem;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1rem solid var(--line);
    background: var(--paper);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bottom-nav button {
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    font-size: 9rem;
    font-weight: 700;
}

.bottom-nav button.active {
    color: var(--green);
}

.nav-icon {
    position: relative;
    width: 25rem;
    height: 25rem;
    border: 1rem solid currentColor;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10rem;
    font-weight: 900;
}

.slip-icon b {
    position: absolute;
    top: -6rem;
    right: -8rem;
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 8rem;
}

.sheet-backdrop {
    position: absolute;
    z-index: 19;
    inset: 0;
    background: rgba(8, 24, 16, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.sheet-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.bet-slip {
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 84vh;
    padding: 8rem 14rem calc(18rem + env(safe-area-inset-bottom));
    border-radius: 8rem 8rem 0 0;
    background: var(--paper);
    box-shadow: 0 -14rem 36rem rgba(0, 0, 0, 0.22);
    transform: translateY(105%);
    transition: transform 180ms ease;
}

.bet-slip.open {
    transform: translateY(0);
}

.sheet-handle {
    width: 38rem;
    height: 4rem;
    margin: 0 auto 12rem;
    border-radius: 2rem;
    background: var(--line);
}

.bet-slip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bet-slip-header button {
    width: 34rem;
    height: 34rem;
    border: 1rem solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
    font-size: 11rem;
    font-weight: 900;
}

.selection {
    margin: 15rem 0;
    padding: 12rem;
    border: 1rem solid var(--line);
    border-left: 4rem solid var(--green);
    border-radius: 6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12rem;
}

.selection span,
.selection strong {
    display: block;
}

.selection span {
    margin-bottom: 4rem;
    color: var(--muted);
    font-size: 9rem;
}

.selection strong {
    font-size: 12rem;
}

.selection b {
    color: var(--green);
}

.bet-slip label {
    display: block;
    margin-bottom: 6rem;
    color: var(--muted);
    font-size: 10rem;
    font-weight: 700;
}

.stake-row {
    min-height: 44rem;
    border: 1rem solid var(--line);
    border-radius: 5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.stake-row span {
    padding-left: 11rem;
    color: var(--muted);
}

.stake-row input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 11rem 8rem;
}

.place-bet {
    width: 100%;
    min-height: 46rem;
    margin-top: 11rem;
    border: 0;
    border-radius: 5rem;
    background: var(--green);
    color: var(--paper);
    font-weight: 800;
    opacity: 0.62;
}

