* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    padding-bottom: 146px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(128, 88, 255, .22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(0, 218, 255, .16), transparent 34%),
        #080b16;
    color: #f4f6ff;
}

body.app-page {
    background: #0b1020;
}

body.auth-page {
    background:
        radial-gradient(circle at 15% 0%, rgba(0, 218, 255, .22), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(159, 92, 255, .22), transparent 30%),
        linear-gradient(180deg, #050815 0%, #11162a 100%);
}

.page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 14px 36px;
}

.site-header {
    margin-bottom: 18px;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-square,
.logo-banner,
.logo-letter {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.logo-square {
    max-width: 420px;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}

.logo-banner {
    max-width: 720px;
    border-radius: 22px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .34);
}

.logo-letter {
    max-width: 440px;
}

.auth-main,
main {
    display: grid;
    gap: 16px;
}

.hero-card,
.page-head,
.dashboard-hero,
.info-card,
.form-card,
.link-card,
.terms-card {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(12, 18, 36, .82);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
    border-radius: 24px;
    padding: 22px;
    backdrop-filter: blur(14px);
}

.hero-card.compact {
    padding: 18px 20px;
}

.eyebrow {
    margin: 0 0 8px;
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 800;
    color: #8ee7ff;
}

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

h1 {
    margin-bottom: 10px;
    font-size: clamp(26px, 6vw, 42px);
    line-height: 1.16;
}

h2 {
    margin-bottom: 12px;
    font-size: 20px;
}

h3 {
    margin-bottom: 8px;
    font-size: 16px;
    color: #cdd7ff;
}

p {
    line-height: 1.75;
    color: #d7def7;
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

label {
    font-weight: 800;
    color: #ffffff;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 16px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input:focus {
    border-color: rgba(142, 231, 255, .85);
    box-shadow: 0 0 0 4px rgba(142, 231, 255, .12);
}

.help {
    margin: 0;
    font-size: 13px;
    color: #aeb8da;
}

.check-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 18px;
    line-height: 1.6;
}

.check-row input {
    margin-top: 5px;
    flex: 0 0 auto;
}

a {
    color: #8ee7ff;
    font-weight: 800;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.primary-button {
    background: linear-gradient(135deg, #7df9ff, #9b6dff);
    color: #07101f;
}

.secondary-button {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .14);
}

.secondary-button.full {
    margin-top: 12px;
}

.error-box,
.success-box {
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 800;
    line-height: 1.6;
}

.error-box {
    background: rgba(255, 91, 116, .16);
    color: #ffd0d7;
    border: 1px solid rgba(255, 91, 116, .32);
}

.success-box {
    background: rgba(88, 255, 188, .14);
    color: #c7ffe9;
    border: 1px solid rgba(88, 255, 188, .28);
}

.link-card {
    text-align: center;
    color: #cfd7f5;
}

.grid.two {
    display: grid;
    gap: 16px;
}

.bottom-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bottom-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
    text-decoration: none;
}

.inline-card {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
}

.terms-card {
    display: grid;
    gap: 6px;
}

.terms-card h2 {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.terms-card h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.status-text {
    margin: 8px 0 0;
    font-size: 0.9rem;
    font-weight: 800;
}

.status-text.good {
    color: #75ffba;
}

.status-text.warn {
    color: #ffd27d;
}

.status-text.muted {
    color: #aeb8da;
}

.footer-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 0;

    background:
        linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(7, 11, 24, .99));
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 -12px 34px rgba(0, 0, 0, .38);

    padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 92px;
    gap: 2px;

    color: #f4f6ff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;

    border-radius: 14px;
    overflow: visible;
}

.footer-item span {
    margin-top: 0;
    white-space: nowrap;
}

.footer-item:hover {
    background: rgba(255, 255, 255, .08);
}

.footer-item.is-active {
    background:
        radial-gradient(circle at 50% 8%, rgba(142, 231, 255, .24), transparent 50%),
        rgba(255, 255, 255, .08);
    color: #ffffff;
}

.footer-icon {
    width: 68px;
    height: 51px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, .36))
        drop-shadow(0 0 10px rgba(142, 231, 255, .08));
}

.footer-item.is-active .footer-icon {
    transform: translateY(-2px) scale(1.04);
    filter:
        drop-shadow(0 0 8px rgba(142, 231, 255, .5))
        drop-shadow(0 5px 10px rgba(0, 0, 0, .38));
}

.site-footer {
    margin-top: 28px;
    padding-bottom: 8px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #8d98bc;
}

@media (min-width: 720px) {
    .grid.two {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-nav {
        left: 50%;
        right: auto;
        width: min(760px, 100%);
        transform: translateX(-50%);
        border-radius: 22px 22px 0 0;
    }
}
.activity-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.activity-chip-form {
    margin: 0;
}

.activity-chip {
    width: 100%;
    min-height: 52px;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;

    background: rgba(255, 255, 255, .06);
    color: #98a5c9;

    font-size: 15px;
    font-weight: 900;

    cursor: pointer;
    transition: all .15s ease;
}

.activity-chip:hover {
    background: rgba(255, 255, 255, .10);
    color: #dce5ff;
}

.activity-chip.is-added {
    background: linear-gradient(135deg, #7df9ff, #9b6dff);
    color: #07101f;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(125, 249, 255, .18);
}

.activity-chip.is-added:hover {
    background: linear-gradient(135deg, #7df9ff, #9b6dff);
    color: #07101f;
}

.activity-chip input[type="radio"] {
    display: none;
}

label.activity-chip {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;

    background: rgba(255, 255, 255, .06);
    color: #98a5c9;

    font-size: 15px;
    font-weight: 900;
    text-align: center;

    cursor: pointer;
    transition: all .15s ease;
}

label.activity-chip input[type="radio"] {
    display: none;
}

label.activity-chip:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #7df9ff, #9b6dff);
    color: #07101f;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(125, 249, 255, .18);
}

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

.avatar-select-card {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 92px;
    padding: 12px;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;

    background: rgba(255, 255, 255, .06);
    color: #98a5c9;

    cursor: pointer;
    transition: all .15s ease;
}

.avatar-select-card input[type="radio"] {
    display: none;
}

.avatar-select-card img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
}

.avatar-select-card:hover {
    background: rgba(255, 255, 255, .10);
}

.avatar-select-card:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #7df9ff, #9b6dff);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(125, 249, 255, .18);
}

.avatar-select-card:has(input[type="radio"]:checked) img {
    transform: scale(1.08);
}

.slider-labels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    margin-bottom: 6px;

    font-size: 12px;
    font-weight: 800;
    color: #aeb8da;
}

.slider-labels span:nth-child(1) {
    text-align: left;
}

.slider-labels span:nth-child(2) {
    text-align: center;
}

.slider-labels span:nth-child(3) {
    text-align: right;
}

input[type="range"] {
    width: 100%;
}

.status-level-box,
.status-exp-box {
    margin-top: 14px;
}

.status-level-label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 900;
    color: #aeb8da;
}

.status-level-value {
    margin: 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 1000;
    color: #ffffff;
}

.status-exp-value {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1;
    font-weight: 1000;
    color: #ffffff;
}

.exp-gauge {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
}

.exp-gauge-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #7df9ff, #9b6dff);
}

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

.status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 14px 16px;
    border-radius: 18px;

    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.status-name {
    font-size: 14px;
    font-weight: 900;
    color: #d7def7;
}

.status-value {
    font-size: 24px;
    font-weight: 1000;
    color: #ffffff;
}

.levelup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(2, 6, 18, .76);
    backdrop-filter: blur(8px);
}

.levelup-modal {
    width: 100%;
    max-width: 420px;

    border-radius: 26px;
    padding: 24px;

    background:
        radial-gradient(circle at 50% 0%, rgba(125, 249, 255, .20), transparent 42%),
        rgba(12, 18, 36, .96);

    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .48);

    text-align: center;
}

.levelup-modal h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

.levelup-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin: 16px 0 22px;

    font-size: 32px;
    font-weight: 1000;
    color: #ffffff;
}

.levelup-arrow {
    color: #8ee7ff;
}

.levelup-status-list {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.levelup-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 11px 14px;
    border-radius: 16px;

    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
}

.levelup-status-row span {
    color: #d7def7;
    font-weight: 900;
}

.levelup-status-row strong {
    color: #ffffff;
    font-size: 18px;
}

.title-award-card{
    margin-bottom:16px;
    padding:14px;
    border-radius:18px;

    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.10);
}

.title-award-name{
    font-size:20px;
    font-weight:1000;
    color:#ffffff;
}

.title-award-description{
    margin-top:6px;
    font-size:13px;
    color:#d7def7;
}

.title-award-reward{
    margin-top:10px;
    font-size:18px;
    font-weight:1000;
    color:#7df9ff;
}