:root {
    --night: #1a0633;
    --card: #34115c;
    --gold: #ffd23f;
    --pink: #ff3d8a;
    --mint: #7dffb3;
    --cream: #fff6ea;
    --display: "Lilita One", "Arial Black", sans-serif;
    --sans: "Nunito", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

body {
    background: #0d021c;
    color: var(--cream);
    font-family: var(--sans);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.page {
    position: relative;
    max-width: 440px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 16px 36px;
    overflow: hidden;
    background:
            radial-gradient(circle at 12% 0%, rgba(255, 61, 138, 0.45), transparent 34%),
            radial-gradient(circle at 100% 18%, rgba(255, 210, 63, 0.28), transparent 32%),
            var(--night);
}

.page::before,
.page::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    transform: rotate(18deg);
    pointer-events: none;
}

.page::before {
    top: 22px;
    right: 22px;
    box-shadow:
            -46px 36px 0 var(--pink),
            -18px 78px 0 var(--mint),
            8px 120px 0 #ff8bd0;
}

.page::after {
    top: 150px;
    left: 14px;
    background: var(--mint);
    box-shadow:
            28px 48px 0 var(--gold),
            6px 96px 0 var(--pink);
}

.hero,
.rtp,
.stage,
.links {
    position: relative;
    z-index: 1;
}

.flTywP {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.userImg {
    width: 108px;
    height: 108px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 0 7px var(--pink);
    transform: rotate(-6deg);
    background: #3a1466;
}

.account {
    max-width: 100%;
    margin-top: 16px;
    font-family: var(--display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ins_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    margin-top: 12px;
    padding: 0 14px;
    border: 1.5px solid var(--gold);
    border-radius: 999px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
}

.ins_btn img {
    width: 16px;
    height: 16px;
}

.rtp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
}

.rtp-item {
    padding: 14px 8px 12px;
    border-radius: 22px;
    background: rgba(255, 246, 234, 0.08);
    border: 1px solid rgba(255, 210, 63, 0.28);
    text-align: center;
}

.rtp-item:first-child {
    transform: rotate(-2deg);
}

.rtp-item:last-child {
    transform: rotate(2deg);
}

.rtp-item > div:last-child {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 246, 234, 0.72);
}

.rtp-number,
.onLineNumber {
    font-family: var(--display);
    font-size: 32px;
    line-height: 1;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.onLineNumber {
    color: var(--mint);
}

.rtp-number.is-rolling,
.onLineNumber.is-rolling {
    animation: glow 0.7s ease;
}

@keyframes glow {
    0% { transform: scale(0.92); filter: brightness(1.6); }
    100% { transform: none; filter: none; }
}

.stage {
    margin-top: 22px;
    padding: 18px 16px 16px;
    border-radius: 28px;
    background: var(--card);
    border: 1px solid rgba(255, 210, 63, 0.32);
}

.stage-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.logoFrame {
    position: relative;
    display: inline-flex;
    max-width: 240px;
    overflow: hidden;
    border-radius: 18px;
    border: 3px solid var(--gold);
    line-height: 0;
    animation: neon-sign 1.1s ease-in-out infinite;
}
.logoFrame::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 34%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    animation: neon-sheen 1.15s linear infinite;
}
.currentLogo {
    height: 72px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    cursor: pointer;
}
@keyframes neon-sign {
    0%, 100% { box-shadow: 0 0 0 4px var(--pink), 0 0 18px rgba(255, 61, 138, 0.85); transform: rotate(-4deg); }
    50% { box-shadow: 0 0 0 4px var(--gold), 0 0 22px rgba(255, 210, 63, 0.95); transform: rotate(4deg); }
}
@keyframes neon-sheen {
    from { transform: translateX(-150%); }
    to { transform: translateX(400%); }
}

.platformName {
    font-family: var(--display);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.inviteRow {
    margin-top: 16px;
    cursor: pointer;
}

.inviteLabel {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 246, 234, 0.66);
    text-align: center;
}

.inviteLine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 52px;
    padding: 8px 8px 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
}

.inviteCode {
    min-width: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--gold);
    user-select: all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copyBtn,
.openLinkBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-weight: 800;
}

.copyBtn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--pink);
    color: #2a1040;
    font-size: 13px;
}

.copyBtn img {
    width: 14px;
    height: 14px;
    filter: brightness(0);
}

.openPlatform {
    display: block;
    margin-top: 14px;
}

.openLinkBtn {
    width: 100%;
    height: 52px;
    border-radius: 999px;
    background: var(--gold);
    color: #2a1040;
    font-size: 16px;
    box-shadow: 4px 4px 0 var(--pink);
}

.openLinkBtn img {
    width: 16px;
    height: 16px;
    filter: brightness(0);
}

.links {
    margin-top: 22px;
}

.cardHeader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cardHeaderIcon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.cardTitle {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 400;
}

.linkList {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-list__empty {
    padding: 18px 8px;
    text-align: center;
    color: rgba(255, 246, 234, 0.7);
    font-weight: 700;
}

.link-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 246, 234, 0.06);
    color: var(--cream);
}

.link-item__thumb {
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 14px;
    background: #4a1c78;
}

.link-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.link-item__thumb--placeholder {
    border: 1px dashed rgba(255, 210, 63, 0.4);
}

.link-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.link-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.link-item__name {
    min-width: 0;
    font-size: 15px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-item__access {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--gold);
    color: #2a1040;
    font-size: 11px;
    font-weight: 800;
}

.link-item__access img {
    width: 12px;
    height: 12px;
    filter: brightness(0);
}

.link-item__url-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.link-item__copy {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.link-item__copy img {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}

.link-item__url {
    min-width: 0;
    font-size: 12px;
    color: rgba(255, 246, 234, 0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 10;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--gold);
    color: #2a1040;
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 360px) {
    .account,
    .platformName {
        font-size: 26px;
    }

    .rtp-number,
    .onLineNumber {
        font-size: 26px;
    }
}

