@font-face {
    font-family: 'Fixedsys Excelsior';
    src: url('../FixedsysExcelsior.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Fixedsys Excelsior';
    src: url('../FixedsysExcelsior.ttf') format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: 'Fixedsys Excelsior';
    src: url('../FixedsysExcelsior.ttf') format('truetype');
    font-style: italic;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: 100dvh;
    background: url('../img/winwin.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Fixedsys Excelsior', monospace;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#wrapper {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}

#content {
width: 100%;
display: flex;
justify-content: center;
}

#accountWrap {
width: 100%;
max-width: 700px;
height: 90vh;
height: 90dvh;
background: rgba(255, 255, 255, 0.4);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: 8px 8px 4px 4px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.8);
color: #000;
padding: 25px;
display: flex;
flex-direction: column;
overflow-y: auto;
}

#accountWrap::-webkit-scrollbar { width: 8px; }
#accountWrap::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
#accountWrap::-webkit-scrollbar-thumb { background: #0e99bc; border-radius: 4px; }


#accountWrap h1 {
margin: 0 0 20px;
font-size: 24px;
text-align: center;
border-bottom: 2px solid rgba(0,0,0,0.2);
padding-bottom: 15px;
color: #0b3d6e;
text-shadow: 0 1px 1px #fff;
}

.section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #7a7a7a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-size: 16px;
    margin: 0 0 15px;
    font-weight: bold;
    color: #0b3d6e;
}

.row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.row label {
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.login-input {
    height: 36px;
    width: 100%;
    border-radius: 3px;
    border: 1px solid #7a7a7a;
    background: #fff;
    color: #000;
    padding: 6px 12px;
    font-size: 14px;
    font-family: inherit;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
    outline: none;
}

.login-input:focus {
    border-color: #3c7fb1;
    box-shadow: 0 0 3px rgba(60, 127, 177, 0.5), inset 0 1px 2px rgba(0,0,0,0.1);
}

.btn-green, .btn-secondary, .btn-danger {
    height: 40px;
    width: 100%;
    border-radius: 3px;
    border: 1px solid #7a7a7a;
    cursor: pointer;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    font-family: inherit;
    box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,0.3);
    transition: all 0.1s;
}

.btn-green { background: linear-gradient(to bottom, #66bb6a, #43a047); color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,0.5); border-color: #2e7d32; }
.btn-green:hover { background: linear-gradient(to bottom, #81c784, #4caf50); }
.btn-green:active { background: linear-gradient(to bottom, #388e3c, #2e7d32); box-shadow: inset 0 1px 3px rgba(0,0,0,0.3); }

.btn-secondary { background: linear-gradient(to bottom, #f0f0f0, #d0d0d0); }
.btn-secondary:hover { background: linear-gradient(to bottom, #e0f0ff, #b0d0f0); border-color: #3c7fb1; }
.btn-secondary:active { background: linear-gradient(to bottom, #c0d0e0, #a0b0c0); box-shadow: inset 0 1px 3px rgba(0,0,0,0.3); }

.btn-danger { background: linear-gradient(to bottom, #ef5350, #e53935); color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,0.5); border-color: #c62828; }
.btn-danger:hover { background: linear-gradient(to bottom, #ef9a9a, #ef5350); }
.btn-danger:active { background: linear-gradient(to bottom, #c62828, #b71c1c); box-shadow: inset 0 1px 3px rgba(0,0,0,0.3); }

.muted {
    font-size: 12px;
    color: #555;
    margin: 6px 0;
    line-height: 1.4;
}

.msg {
    font-size: 12px;
    margin-top: 10px;
    min-height: 16px;
    font-weight: bold;
}

.msg.ok { color: #2e7d32; }
.msg.err { color: #d32f2f; }

.confirm-box {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #ffb3b3;
    border-radius: 4px;
    background: rgba(255, 0, 0, 0.05);
}

.confirm-box.active { display: block; }


.profile-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}

.profile-head .name { font-weight: bold; font-size: 18px; color: #0b3d6e; }
.profile-head .email { font-size: 14px; color: #333; word-break: break-all; }

.rank-block {
    background: #f0f4f8;
    border: 1px solid #7a7a7a;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.rank-title { font-weight: bold; font-size: 16px; color: #0b3d6e; }
.rank-tokens { font-weight: bold; font-size: 16px; color: #d84315; }

.rank-bar {
    height: 12px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin: 10px 0;
    border: 1px solid #7a7a7a;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.rank-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to bottom, #ffca28, #ffa000);
    border-radius: 6px;
    transition: width .3s;
}

.rank-hint { font-size: 12px; color: #333; }

.rank-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 11px;
    color: #666;
    gap: 5px;
}

.rank-steps span { flex: 1; text-align: center; }
.rank-steps span.current { color: #d84315; font-weight: bold; }

@media (max-width: 700px) {
    #wrapper { padding: 10px; }
    #accountWrap { padding: 15px; height: 95vh; height: 95dvh; }
    #accountWrap h1 { font-size: 20px; }
    .section { padding: 15px; }
    .section h2 { font-size: 15px; }
    .login-input { font-size: 14px; }
    .btn-green, .btn-secondary, .btn-danger { font-size: 13px; }
}
