html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'MapleMono', 'SUSE Mono', "SF Mono", "Cascadia Code", Consolas, monospace, 'Noto Color Emoji';
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #051018 0%, #082032 40%, #16324a 70%, #1f3a52 100%);
    background-attachment: fixed;
    color: white;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    overflow-y: auto;
    margin: 0;
}

.scrollable-container {
    max-height: 500px;
    overflow-y: auto;
}

.divround {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.40);
    height: auto;
    width: 90vw;
    max-width: 510px;
    margin: auto;
    padding: 2.375vh;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
    overflow-y: auto;
}

.circular {
    border-radius: 125px;
    -webkit-border-radius: 125px;
    -moz-border-radius: 125px;
    background-size: cover;
    display: inline-block;
    width: 250px;
    height: 250px;
}

.notif {
    border-radius: 7px;
    padding: 20px;
    height: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notif.warning {
    background: rgba(255, 249, 178, .55);
    border: 1px solid rgba(255, 249, 178, .6);
    color: #5c4d00;
}

.notif.error {
    background: rgba(255, 175, 180, .55);
    border: 1px solid rgba(255, 175, 180, .6);
    color: #6b1015;
}

.notif.success {
    background: rgba(166, 239, 184, .55);
    border: 1px solid rgba(166, 239, 184, .6);
    color: #0f4a23;
}

.notif.info {
    background: rgba(120, 192, 222, .55);
    border: 1px solid rgba(120, 192, 222, .6);
    color: #0b3550;
}

.form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.30);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.progress {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    justify-content: flex-start;
    border-radius: 100px;
    align-items: center;
    position: relative;
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
}

.progress-bar {
    box-shadow: 0 10px 18px -17px rgb(50, 180, 163);
    border-radius: 100px;
    background-color: rgb(57, 206, 186);
    width: 0;
    transition: width 0.3s ease-in-out;
    height: 10px;
}

.progress-bar.error {
    box-shadow: 0 10px 18px -17px rgb(223, 43, 43);
    background-color: rgb(223, 43, 43);
}

.progress-bar.success {
    box-shadow: 0 10px 18px -17px rgb(45, 245, 122);
    background-color: rgb(45, 245, 122);
}

progress[value]::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
}

progress[value]::-webkit-progress-value {
    border-radius: 100px;
    background: rgb(57, 206, 186);
}

progress[value]::-moz-progress-bar {
    border-radius: 100px;
    background: rgb(57, 206, 186);
}

progress[value]::-ms-fill {
    border-radius: 100px;
    background: rgb(57, 206, 186);
}

.grid-container {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-gap: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.grid-container-vertical {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.grid-item {
    text-align: center;
    padding: 19px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    max-width: 100%;
    color: white;
}

.grid-item-auto {
    text-align: center;
    padding: 19px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 30%;
    max-width: 100%;
    color: white;
}

.grid-button {
    text-align: center;
    padding: 19px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    max-width: 100%;
    color: white;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.grid-button:active {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(0.98);
}

.grid-button:disabled,
.grid-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    .grid-button:hover {
        background: rgba(255, 255, 255, 0.20);
    }
}

.grid-button-primary {
    text-align: center;
    padding: 19px;
    border-radius: 10px;
    background: rgb(57, 206, 186);
    border: none;
    max-width: 100%;
    color: #051018;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 10px 18px -12px rgb(50, 180, 163);
    transition: opacity 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.grid-button-primary:active {
    transform: scale(0.98);
}

.grid-button-primary:disabled,
.grid-button-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    .grid-button-primary:hover {
        opacity: 0.85;
    }
}

.bold {
    font-size: 19px;
    font-weight: 700;
}

/* Link list (linktree-style rows) */

.link-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 22px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.link-item:active {
    transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
    .link-item:hover {
        background: rgba(0, 0, 0, 0.6);
    }
}

.link-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: white;
}

.link-item-icon svg,
.link-item-icon img {
    width: 100%;
    height: 100%;
}

.link-item-title {
    flex: 1;
    font-weight: 700;
    font-size: 16px;
    text-align: left;
}

.link-item-menu {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.15s ease-in-out, color 0.15s ease-in-out;
}

.link-item-menu::before {
    content: '';
    position: absolute;
    inset: -8px;
}

@media (hover: hover) and (pointer: fine) {
    .link-item-menu:hover {
        background: rgba(255, 255, 255, 0.08);
        color: white;
    }
}

.center {
    text-align: center;
    justify-content: center;
}

.hidden {
    display: none;
}

/* Utilities: icon-only controls, square sizing, font-size steps */

.icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.size-sm {
    width: 40px;
    height: 40px;
}

.size-md {
    width: 52px;
    height: 52px;
}

.size-lg {
    width: 64px;
    height: 64px;
}

.fs-sm {
    font-size: 14px;
}

.fs-md {
    font-size: 20px;
}

.fs-lg {
    font-size: 28px;
}

.no-select {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.no-drag {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.version-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

img {
    border-radius: 0.4em;
    max-width: 50%;
    max-height: 50%;
    width: auto;
    height: auto;
}

/* Error / hero page elements */

.hero-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.30);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-title {
    color: white;
    font-weight: 700;
    margin: 0;
}

.hero-body {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    background-color: rgb(57, 206, 186);
    color: #051018;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 18px -12px rgb(50, 180, 163);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: opacity 0.2s ease-in-out;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: white;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        opacity: 0.85;
    }

    .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.18);
    }
}

@media (prefers-color-scheme: light) {
    .divround,
    .form,
    .version-container,
    .hero-card {
        background: rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .grid-item,
    .grid-item-auto {
        background: rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .grid-button {
        background: rgba(0, 0, 0, 0.04);
        color: #051018;
    }

    .grid-button:active {
        background: rgba(0, 0, 0, 0.12);
    }

    .link-item {
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(0, 0, 0, 0.08);
        color: #051018;
    }

    .link-item-menu {
        color: rgba(0, 0, 0, 0.4);
    }

    .hero-body {
        color: rgba(0, 0, 0, 0.65);
    }

    .btn-ghost {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.12);
        color: #051018;
    }
}

@media (prefers-color-scheme: light) and (hover: hover) and (pointer: fine) {
    .grid-button:hover {
        background: rgba(0, 0, 0, 0.08);
    }

    .link-item:hover {
        background: rgba(255, 255, 255, 0.85);
    }

    .link-item-menu:hover {
        background: rgba(0, 0, 0, 0.06);
        color: #051018;
    }
}

@media only screen and (max-width: 600px) {
    .divround {
        width: 85vw !important;
        height: 92vh !important;
    }

    .scrollable-container {
        max-height: 609px !important;
    }

    .grid-item-auto {
        width: 45%;
    }

    .link-item {
        padding: 16px 18px;
        gap: 14px;
    }

    .version-container {
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        padding-right: calc(10px + env(safe-area-inset-right));
    }
}

@media only screen and (max-width: 380px) {
    .grid-item-auto {
        width: 100%;
    }
}