
body {
    /* margin: 0; */
    /* height: 100vh; */
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}
.login-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-logo {
    background-color: #3b82f6;
    color: white;
    padding: 12px 40px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.login-card {
    background: white;
    width: 100%;
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.login-card h2 {
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}
.input-group select{
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e7ff;
    border-radius: 15px;
    background-color: #f8faff;
    font-size: 16px;
    transition: 0.3s;
}

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
    margin-left: 5px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e7ff;
    border-radius: 15px;
    background-color: #f8faff;
    font-size: 16px;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.forgot-pw {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 25px;
}

.forgot-pw a {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
.login-btn a{
    text-decoration: none;
    color: white
}

.contract-btn {
    width: 100%;
    display: inline-flex;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}
.contract-btn .fa, .fab, .fad, .fal, .far, .fas{
    line-height: 1.5;
}

.contract-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
.contract-btn a{
    text-decoration: none;
    color: white
}

.btn-common {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-common:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
.btn-common a{
    text-decoration: none;
    color: white
}
.divider {
    margin: 25px 0;
    position: relative;
    border-bottom: 1px solid #eee;
}

.divider span {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    font-size: 12px;
    color: #bbb;
}

.register-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #3b82f6;
    border-radius: 15px;
    background: transparent;
    color: #3b82f6;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.register-btn a{
    text-decoration: none;

}
.register-btn:hover {
    background: #f0f7ff;
}

.login-footer {
    margin-top: 30px;
    font-size: 12px;
    color: #aaa;
}

html,body{
    height:100%
}

body{
    margin:0;
    font-family:'Noto Sans Thai','Inter var',ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
    background:var(--page-bg);
    color:var(--text)
}
.wrap{
    /*min-height:100vh;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 10px 55px 10px;
}
.container{
    width:100%;
    max-width:420px
}
.header{
    margin-bottom:12px
}
.gap-0{
    gap:0 !important;
}
.header-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px
}
.brand{
    display:flex;
    align-items:center;
    gap:8px
}
.brand img{
    width:140px;
    height:auto;
    object-fit:contain;
    transition:filter .3s ease
}
.brand img.darkfilter{
    filter:invert(1) brightness(2) saturate(1.2)
}
.-img-prm{
    width: 100%;
}
.footer-menu{
    position: fixed;
    height: 9%;
    background: red;
    z-index: 2;
    bottom: 0;
    background: var(--card);
    border: 1px solid var(--card-border);

}
.footer-menu .nav-menu {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    max-width: 992px;
    margin: 0 auto;
}
.footer-menu  .nav-menu .nav-item {
    flex: 1 1;
    list-style-type: none;
    text-align: center;
}
.footer-menu .nav-menu .nav-item .nav-link {
    text-decoration: none;
    padding: .25rem 0 16px 0px;
    /* opacity: .75; */
    color: #fff;
    display: block;
}
.footer-menu .nav-link.active{
    background: #39648f;
    border-radius: 10px;
}
.footer-menu .nav-menu .nav-item .nav-link span {
    font-size: 0.9rem;
    line-height: 1.25;
    display: block;
}
.footer-menu .footer-label-menu{
    font-size: 0.9rem;
    line-height: 1.25;
    display: block;
    font-weight: 500px;
    color:var(--accent);
}
.footer-menu .active .footer-label-menu {
    color:#FFF;
}
.footer-menu img{
    width: 40%;
    filter: var(--accent-icon);
}
.footer-menu .active img{
    filter: var(--accent-icon-active);
}
.-game-title{
    color: var(--accent) !important;
}
.icon-main{
    width: 40px;
    filter: var(--accent-icon);
}
.btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border-radius:16px;
    padding:10px 12px;
    border:0;
    background:var(--accent);
    color:#fff;
    box-shadow:var(--shadow);
    cursor:pointer
}
:root.dark .btn{
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.2)
}
.profile{
    background: #EAF2FF;
    border-radius: 16px;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
:root.dark .profile{
    background:rgba(77,178,255,.08)
}
.image-ma{
    filter: grayscale(100%);
}
.avatar{
    width:40px;
    height:40px;
    border-radius:999px;
    background:linear-gradient(135deg,var(--accent) 0%, var(--accent-2) 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    box-shadow:var(--shadow)
}
.u-name{
    margin:0;
    font-weight:600;
    font-size:15px
}
.u-rank{
    margin:2px 0 0;
    font-size:12px;
    color:#888
}
.diamonds{
    display:flex;
    gap:4px;
    color:#22d3ee
}
.card{
    position:relative;
    background:var(--card);
    border:1px solid var(--card-border);
    border-radius:24px;
    box-shadow:var(--shadow);
    padding:20px;
}
.ring{
    position:absolute;
    right:-64px;
    top:-64px;
    width:192px;
    height:192px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(13,92,182,.15) 0%,transparent 70%)
}
:root.dark .ring{
    background:radial-gradient(circle,rgba(77,178,255,.18) 0%,transparent 70%)
}
.balance{
    font-weight:900;
    color:var(--accent);
    font-size:clamp(32px,8vw,44px);
    margin:6px 0 4px
}
.muted{
    font-size:11px;
    color:var(--text-soft)
}
.limit{
    width:100%;
    height:8px;
    border-radius:8px;
    background:#eef3ff;
    overflow:hidden
}
.limit>span{
    display:block;
    width:65%;
    height:100%;
    background:var(--accent)
}
:root.dark .limit{
    background:rgba(255,255,255,.12)
}
.menu{
    margin-top:10px
}
.menu h2{
    margin:0 0 10px;
    font-size:12px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:var(--text-soft)
}
.grid-2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px
}
.grid-2 .dw-btn{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    /* font-size: 11px; */
    text-align: center;
    /* padding: 8px 6px; */
    color: var(--accent);
}
.grid-4{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px
}
.tile-btn{
    aspect-ratio:1/1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#fff;
    border:1px solid var(--card-border);
    border-radius:16px;
    box-shadow:var(--shadow);
    font-size:11px;
    text-align:center;
    /*padding:8px 6px;*/
    color:var(--accent)
}
.tile-btn:hover{
    background:#cdcdcd;
}

.tile-btn i{
    stroke:var(--accent)
}
.row{
    display:flex;
    align-items:center;
    gap:8px
}
.right{
    margin-left:auto
}
.sr-only{
    position:absolute;
    left:-10000px;
    top:auto;
    width:1px;
    height:1px;
    overflow:hidden
}
.nav{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:8px;
    padding: 86px 48px;
}
.nav a{
    font-size:11px;
    color:var(--accent);
    text-decoration:none;
    padding:6px 9px;
    border:1px solid var(--card-border);
    border-radius:999px;
    background:#fff
}
:root.dark .nav a{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.16);
    color:#fff
}
.page-title{
    font-weight:800;
    letter-spacing:-.01em;
    margin:8px 0 0 0;
    color:var(--accent)
}

.-btn-balance {
    display: flex;
    color: var(--accent);
    background: transparent;
    border: none;
    align-items: center;
    justify-content: center;
    height: 25px;
    width: 25px;
}
.-btn-icon {
    display: flex;
    color: var(--accent);
    background: transparent;
    border: none;
    align-items: center;
    justify-content: center;
    height: 25px;
    width: 25px;
}
.-img-level-header{
    width: 25px;
    margin-top: -4px;
}
.btn-common-danger {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background-color: #f16869 !important;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    display: block !important;
}

.btn-common-normal {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    display: block !important;
}

.btn-common-white {
    width: 100%;
    padding: 15px;
    border: solid 1px #eee8e8;
    border-radius: 15px;
    background: #ffffff;
    color: black;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    display: block !important;
}