* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #17120f;
}

body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    background: #17120f;
    color: #f5f1ed;

    font-family: Arial, Helvetica, sans-serif;

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

    overflow-x: hidden;

    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.container {
    width: 100%;
    max-width: 520px;

    padding: 32px 20px;

    text-align: center;
}

.logo {
    width: 58px;
    height: 58px;

    margin: 0 auto 18px;

    background: #c47a45;
    color: #17120f;

    border-radius: 50%;

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

    font-size: 34px;
    font-weight: bold;
}

.brand {
    color: #f5f1ed;

    font-size: 24px;
    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 8px;
}

.pair {
    color: #c47a45;

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

    letter-spacing: 2px;

    margin-bottom: 14px;
}

.hashrate-value {
    width: 100%;

    color: #ffffff;

    font-size: clamp(38px, 15vw, 64px);
    font-weight: 600;

    letter-spacing: -2px;

    overflow-wrap: anywhere;
    word-break: break-word;
}

#hashrate-unit {
    color: #c47a45;

    font-size: 0.55em;
    font-weight: 600;

    letter-spacing: -1px;

    white-space: nowrap;
}

.source {
    margin-top: 14px;

    color: #b8aaa1;

    font-size: 11px;
    letter-spacing: 1px;
}

.install-section {
    width: 100%;

    margin-top: 40px;
    padding-top: 24px;

    border-top: 1px solid #3a2d25;
}

.install-button {
    max-width: 100%;

    padding: 10px 16px;

    background: transparent;
    color: #c47a45;

    border: 1px solid #c47a45;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.install-button:hover {
    background: #c47a45;
    color: #17120f;
}

.instructions {
    display: none;

    width: 100%;
    max-width: 420px;

    margin: 22px auto 0;
    padding: 20px;

    background: #211914;

    border: 1px solid #3a2d25;
    border-radius: 8px;

    color: #e8e1dc;

    font-size: 14px;
    line-height: 1.6;

    text-align: left;

    overflow-wrap: break-word;
}

.instructions h2 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 18px;
}

.instructions h3 {
    margin: 20px 0 6px;

    color: #c47a45;

    font-size: 14px;
}

.instructions h3:first-of-type {
    margin-top: 20px;
}

.instructions p {
    margin: 0 0 16px;

    color: #e8e1dc;
}

.instructions ol {
    margin: 6px 0 0;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 5px;
    color: #e8e1dc;
}

.instructions strong {
    color: #ffffff;
}

.donation-section {
    width: 100%;

    margin-top: 40px;
    padding-top: 24px;

    border-top: 1px solid #3a2d25;
}

.donation-text {
    color: #f5f1ed;

    font-size: 12px;
    line-height: 1.5;

    margin-bottom: 10px;
}

.donation-address {
    display: block;

    width: 100%;

    color: #b8aaa1;

    font-size: 11px;
    line-height: 1.5;

    word-break: break-all;
}

.qr-code {
    display: block;

    width: 180px;
    height: 180px;

    margin: 16px auto 0;
}

@media (max-width: 400px) {

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand {
        font-size: 21px;
    }

    .pair {
        font-size: 13px;
    }

    .hashrate-value {
        letter-spacing: -1.5px;
    }

    .instructions {
        padding: 18px;
    }

    .install-button {
        font-size: 13px;
    }

    .donation-address {
        font-size: 10px;
    }

    .qr-code {
        width: 160px;
        height: 160px;
    }
}
