@import url("https://fonts.cdnfonts.com/css/minecraft-five");

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: Arial, sans-serif;
            overflow: hidden;
            background: #3a3a3a;
        }

        .flag {
            position: fixed;
            inset: 0;
            background: linear-gradient(
                to bottom,
                #3a3a3a
            );
        }

        .rain-layer {
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
        }

        .overlay {
            position: relative;
            z-index: 1;
            text-align: center;
            padding: 24px;
        }

        .profile-panel {
            position: fixed;
            top: 16px;
            left: 16px;
            right: auto;
            z-index: 2;
            display: block;
            width: min(calc(100vw - 32px), 1120px);
        }

        .profile-card {
            display: flex;
            align-items: center;
            gap: 18px;
            width: 100%;
            min-height: 144px;
            padding: 0 18px 0 0;
            color: #ffffff;
            background: rgba(28, 28, 28, 0.96);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 24px;
            box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
            overflow: hidden;
        }

        .profile-skin-block {
            flex: 0 0 152px;
            align-self: stretch;
            margin: 0;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 0 0 0 8px;
            background: none;
        }

        .profile-skin-image {
            display: block;
            width: 132px;
            max-width: 100%;
            height: auto;
            object-fit: contain;
            image-rendering: auto;
            transform: translateY(-10px);
            filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
        }

        .profile-summary {
            display: flex;
            align-items: center;
            gap: 22px;
            min-width: 220px;
            padding-right: 8px;
        }

        .profile-rank {
            flex: 0 0 auto;
            font-family: "Open Sans", "Segoe UI", sans-serif;
            font-size: clamp(1.3rem, 1.7vw, 1.9rem);
            font-weight: 500;
            line-height: 1;
            color: rgba(255, 255, 255, 0.92);
            letter-spacing: -0.02em;
        }

        .profile-copy {
            min-width: 0;
        }

        .profile-title {
            margin: 0 0 6px;
            font-size: clamp(1.25rem, 1.55vw, 1.9rem);
            font-weight: 800;
            line-height: 1;
        }

        .profile-subtitle {
            margin: 0;
            font-size: clamp(1rem, 1.15vw, 1.35rem);
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
        }

        .profile-tiers {
            margin-left: auto;
            min-width: 0;
        }

        .profile-tiers-grid {
            display: flex;
            flex-wrap: nowrap;
            justify-content: flex-end;
            gap: 8px;
            overflow-x: auto;
            padding: 6px 0 6px 8px;
            scrollbar-width: none;
        }

        .profile-tiers-grid::-webkit-scrollbar {
            display: none;
        }

        .profile-tier-card {
            flex: 0 0 72px;
            width: 72px;
            height: 104px;
            padding: 10px 7px 9px;
            border-radius: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.05);
            background:
                radial-gradient(120% 78% at 50% -12%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 42%),
                linear-gradient(180deg, var(--tier-start) 0%, var(--tier-mid) 52%, var(--tier-end) 100%);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
        }

        .tier-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 44px;
        }

        .tier-icon-image {
            display: block;
            width: 44px;
            height: 44px;
            object-fit: contain;
            filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.22));
        }

        .tier-value {
            display: block;
            font-family: "Minecraft Five", "Minecraft Five Bold", monospace;
            font-size: 0.82rem;
            font-weight: 900;
            line-height: 1;
            color: #ffffff;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
        }

        .profile-status {
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.9);
        }

        .tier-theme-amethyst {
            --tier-start: #8b14de;
            --tier-mid: #b11fff;
            --tier-end: #db43ff;
        }

        .tier-theme-sword {
            --tier-start: #1630cf;
            --tier-mid: #1f4ef3;
            --tier-end: #3781ff;
        }

        .tier-theme-netherite {
            --tier-start: #d81a1a;
            --tier-mid: #ee1f1f;
            --tier-end: #ff4747;
        }

        .tier-theme-potion {
            --tier-start: #d81a1a;
            --tier-mid: #ed2254;
            --tier-end: #ff449c;
        }

        .tier-theme-gapple {
            --tier-start: #d5a40d;
            --tier-mid: #e3c221;
            --tier-end: #ffea4a;
        }

        .tier-theme-door {
            --tier-start: #c74412;
            --tier-mid: #de5e16;
            --tier-end: #ff972d;
        }

        .tier-theme-pearl {
            --tier-start: #0e7120;
            --tier-mid: #159234;
            --tier-end: #2ac65b;
        }

        .tier-theme-axe,
        .tier-theme-stone {
            --tier-start: #18203f;
            --tier-mid: #313d63;
            --tier-end: #69779b;
        }

        .telegram-panel {
            position: fixed;
            top: 50%;
            right: 24px;
            z-index: 2;
            width: min(360px, calc(100vw - 32px));
            padding: 24px;
            color: #ffffff;
            background: linear-gradient(160deg, rgba(25, 44, 82, 0.94), rgba(10, 150, 220, 0.84));
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-radius: 24px;
            box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            transform: translateY(-50%);
        }

        .telegram-kicker {
            margin: 0 0 8px;
            font-size: 0.9rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.75);
        }

        .telegram-title {
            margin: 0 0 10px;
            font-size: 1.8rem;
            line-height: 1.1;
        }

        .telegram-text {
            margin: 0 0 18px;
            font-size: 1rem;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.88);
        }

        .telegram-link {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 20px;
            color: #ffffff;
            text-decoration: none;
            font-weight: 700;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.16);
            border: 1px solid rgba(255, 255, 255, 0.22);
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .telegram-link:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.24);
        }

        .telegram-link:focus-visible {
            outline: 3px solid rgba(255, 255, 255, 0.95);
            outline-offset: 4px;
        }

        .cta-button {
            display: inline-block;
            padding: 22px 48px;
            font-size: 2rem;
            font-weight: 700;
            color: #ffffff;
            text-decoration: none;
            background: rgba(0, 0, 0, 0.72);
            border: 4px solid #ffffff;
            border-radius: 18px;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .cta-button:hover {
            transform: scale(1.05);
            background: rgba(0, 0, 0, 0.82);
        }

        .cta-button:focus-visible {
            outline: 4px solid #ffffff;
            outline-offset: 6px;
        }

        @media (max-width: 640px) {
            .profile-panel {
                top: 16px;
                left: 16px;
                right: 16px;
                width: auto;
            }

            .profile-card {
                flex-direction: column;
                align-items: stretch;
                min-height: 0;
                padding: 14px;
                gap: 12px;
            }

            .profile-skin-block {
                flex: 0 0 auto;
                align-self: center;
                padding: 0;
                background: none;
            }

            .profile-skin-image {
                width: 108px;
                transform: translateY(-8px);
            }

            .profile-summary {
                min-width: 0;
                justify-content: center;
                padding-right: 0;
            }

            .profile-copy {
                text-align: left;
            }

            .profile-tiers {
                margin-left: 0;
            }

            .profile-tiers-grid {
                justify-content: flex-start;
                gap: 8px;
                padding: 4px 0 0;
            }

            .profile-tier-card {
                flex: 0 0 64px;
                width: 64px;
                height: 94px;
            }

            .tier-icon {
                min-height: 38px;
            }

            .tier-icon-image {
                width: 38px;
                height: 38px;
            }

            .tier-value {
                font-size: 0.72rem;
            }

            .telegram-panel {
                top: auto;
                right: 16px;
                bottom: 16px;
                left: 16px;
                width: auto;
                padding: 18px;
                transform: none;
            }

            .telegram-title {
                font-size: 1.4rem;
            }

            .cta-button {
                width: 100%;
                max-width: 320px;
                font-size: 1.5rem;
                padding: 18px 28px;
            }
        }
